/* Authentication Pages Styles */

.auth-page {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px;
    background: linear-gradient(135deg, rgba(0, 112, 186, 0.03) 0%, rgba(0, 156, 222, 0.03) 100%);
    position: relative;
    overflow: hidden;
}

.auth-page::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(0, 112, 186, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-page::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 156, 222, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.auth-container {
    max-width: 480px;
    width: 100%;
    position: relative;
    z-index: 1;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 48px 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.02em;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-family: inherit;
    transition: all var(--transition-base);
    background: var(--white);
    color: var(--text-primary);
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1);
}

.form-input::placeholder {
    color: transparent;
}

.form-input:not(:placeholder-shown) + label,
.form-input:focus + label {
    transform: translateY(-20px) scale(0.85);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary-blue);
}

.form-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: -4px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary-blue);
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-password {
    font-size: 14px;
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 500;
    transition: color var(--transition-fast);
}

.forgot-password:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

.btn-auth-submit {
    width: 100%;
    padding: 16px;
    background: var(--gradient-primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-md);
    margin-top: 8px;
}

.btn-auth-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
    background: linear-gradient(135deg, #005a94 0%, #007bb8 100%);
}

.btn-auth-submit:active {
    transform: translateY(0);
}

.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 32px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--border-color);
}

.auth-divider span {
    padding: 0 16px;
}

.social-auth {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.btn-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--white);
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-social:hover {
    border-color: var(--primary-blue);
    background: var(--gradient-secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-social svg {
    flex-shrink: 0;
}

.btn-google {
    color: #4285F4;
}

.btn-apple {
    color: #000000;
}

.auth-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
}

.auth-footer p {
    font-size: 14px;
    color: var(--text-secondary);
    margin: 0;
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--primary-dark-blue);
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .auth-page {
        padding: 40px 16px;
    }
    
    .auth-card {
        padding: 32px 24px;
    }
    
    .auth-title {
        font-size: 28px;
    }
    
    .auth-subtitle {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .auth-page {
        padding: 24px 12px;
    }
    
    .auth-card {
        padding: 24px 20px;
        border-radius: var(--radius-md);
    }
    
    .auth-title {
        font-size: 24px;
    }
    
    .form-input {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .btn-auth-submit {
        padding: 14px;
        font-size: 15px;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* Dark Theme */
body.dark-theme .auth-page {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.05) 0%, rgba(121, 192, 255, 0.05) 100%);
}

body.dark-theme .auth-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-lg-dark);
}

body.dark-theme .auth-title {
    background: var(--gradient-primary-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.dark-theme .auth-subtitle {
    color: var(--text-secondary);
}

body.dark-theme .form-label {
    color: var(--text-primary);
}

body.dark-theme .form-input {
    background: var(--bg-hover);
    border: 1px solid var(--border-primary);
    color: var(--text-primary);
}

body.dark-theme .form-input:focus {
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.1);
}

body.dark-theme .password-toggle {
    color: var(--text-secondary);
}

body.dark-theme .password-toggle:hover {
    color: var(--accent-primary);
}

body.dark-theme .form-hint {
    color: var(--text-tertiary);
}

body.dark-theme .checkbox-label {
    color: var(--text-secondary);
}

body.dark-theme .forgot-password {
    color: var(--accent-primary);
}

body.dark-theme .forgot-password:hover {
    color: var(--accent-hover);
}

body.dark-theme .btn-auth-submit {
    background: var(--gradient-primary-dark);
}

body.dark-theme .btn-auth-submit:hover {
    background: linear-gradient(135deg, #58A6FF 0%, #79C0FF 100%);
    box-shadow: 0 4px 16px rgba(88, 166, 255, 0.3);
}

body.dark-theme .auth-divider {
    color: var(--text-tertiary);
}

body.dark-theme .auth-divider::before,
body.dark-theme .auth-divider::after {
    border-bottom-color: var(--border-primary);
}

body.dark-theme .btn-social {
    background: var(--bg-hover);
    border: 2px solid var(--border-primary);
    color: var(--text-primary);
}

body.dark-theme .btn-social:hover {
    background: var(--bg-elevated);
    border-color: var(--accent-primary);
}

body.dark-theme .auth-footer {
    border-top-color: var(--border-primary);
}

body.dark-theme .auth-footer p {
    color: var(--text-secondary);
}

body.dark-theme .auth-footer a {
    color: var(--accent-primary);
}

body.dark-theme .auth-footer a:hover {
    color: var(--accent-hover);
}
