:root {
    --color-primary: #a6c0fe;
    --color-secondary: #f68084;
    --color-light: rgba(255, 255, 255, 0.85);
    --color-dark: #333;
    --color-success: #28a745;
    --color-warning: #ffc107;
    --color-error: #dc3545;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.header {
    text-align: center;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.logo {
    width: 120px;
    height: 120px;
    margin: 0 auto 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 3px solid white;
    background: white;
    padding: 10px;
}

.logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.form-wrapper {
    background: var(--color-light);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

.form-header {
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    padding: 20px;
    text-align: center;
    color: white;
}

.form-header h2 {
    font-size: 1.8rem;
}

.form-body {
    padding: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--color-dark);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(166, 192, 254, 0.3);
}

.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #777;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-strength {
    margin-top: 10px;
}

.strength-meter {
    height: 6px;
    background: #eee;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 5px;
}

.strength-bar {
    height: 100%;
    width: 0%;
    background: var(--color-error);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.strength-text {
    font-size: 0.85rem;
    color: var(--color-error);
    font-weight: 500;
}

.btn {
    display: block;
    width: 100%;
    padding: 14px;
    background: linear-gradient(to right, var(--color-primary), var(--color-secondary));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 20px;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 14px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(-1px);
}

.btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    color: var(--color-dark);
}

.switch-form a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
}

.terms {
    margin-top: 15px;
}

.terms label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.terms a {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
}

.terms a:hover {
    text-decoration: underline;
}

.remember {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.remember label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: normal;
}

.forgot-password {
    color: var(--color-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    text-align: center;
    font-weight: 500;
}

.message-success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 1px solid var(--color-success);
    color: var(--color-success);
}

.message-error {
    background-color: rgba(220, 53, 69, 0.2);
    border: 1px solid var(--color-error);
    color: var(--color-error);
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .form-body {
        padding: 20px;
    }
    
    .container {
        gap: 20px;
    }
}