/* ========================================
   AUTHENTICATION PAGES STYLES
======================================== */

.auth-page {
    min-height: 100vh;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

/* === Left Side - Branding === */
.auth-left {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-branding {
    position: relative;
    z-index: 2;
    max-width: 500px;
}

.auth-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 48px;
}

.auth-logo .logo-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 24px;
}

.auth-logo .logo-text {
    font-size: 28px;
    font-weight: 700;
    font-family: var(--font-display);
    color: var(--white);
}

.auth-branding h1 {
    font-size: 42px;
    color: var(--white);
    margin-bottom: 16px;
    line-height: 1.2;
}

.auth-branding > p {
    font-size: 18px;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 40px;
}

.auth-features {
    display: grid;
    gap: 20px;
}

.auth-feature {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.auth-feature i {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.auth-feature span {
    font-weight: 600;
    font-size: 15px;
}

.auth-benefits {
    display: grid;
    gap: 24px;
}

.benefit-item {
    display: flex;
    gap: 16px;
}

.benefit-item i {
    width: 24px;
    height: 24px;
    color: var(--secondary-light);
    font-size: 24px;
    flex-shrink: 0;
}

.benefit-item strong {
    display: block;
    font-size: 16px;
    margin-bottom: 4px;
}

.benefit-item p {
    font-size: 14px;
    opacity: 0.9;
    margin: 0;
}

.auth-decoration {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.auth-decoration .decoration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
}

.auth-decoration .decoration-circle:nth-child(1) {
    width: 400px;
    height: 400px;
    top: -200px;
    right: -100px;
}

.auth-decoration .decoration-circle:nth-child(2) {
    width: 300px;
    height: 300px;
    bottom: -150px;
    left: -100px;
}

.auth-decoration .decoration-circle:nth-child(3) {
    width: 250px;
    height: 250px;
    top: 50%;
    left: 30%;
}

/* === Right Side - Form === */
.auth-right {
    padding: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
}

.auth-form-wrapper {
    width: 100%;
    max-width: 480px;
}

.auth-form-header {
    text-align: center;
    margin-bottom: 40px;
}

.auth-form-header h2 {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--dark);
}

.auth-form-header p {
    font-size: 15px;
    color: #666;
}

.reset-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, rgba(26, 77, 46, 0.1) 0%, rgba(45, 106, 79, 0.1) 100%);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 24px;
}

.reset-icon.success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    color: #28a745;
}

/* === Registration Steps === */
.registration-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.registration-steps::before {
    content: '';
    position: absolute;
    top: 20px;
    left: 60px;
    right: 60px;
    height: 2px;
    background: #e0e0e0;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e0e0e0;
    color: #999;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    transition: var(--transition-fast);
}

.step.active .step-number {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 4px 12px rgba(26, 77, 46, 0.3);
}

.step span {
    font-size: 13px;
    color: #999;
    font-weight: 600;
}

.step.active span {
    color: var(--primary);
}

/* === Form Styles === */
.auth-form {
    display: grid;
    gap: 24px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: grid;
    gap: 8px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--dark);
    font-size: 14px;
}

.form-group label i {
    color: var(--secondary);
    font-size: 16px;
}

.form-control {
    padding: 14px 18px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 15px;
    transition: var(--transition-fast);
    font-family: var(--font-primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 77, 46, 0.1);
}

.form-control::placeholder {
    color: #999;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    cursor: pointer;
}

/* === Password Input === */
.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    transition: var(--transition-fast);
}

.password-toggle:hover {
    color: var(--primary);
}

.password-strength {
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
    min-height: 20px;
}

.password-requirements {
    padding: 16px;
    background: #f8f9fa;
    border-radius: 12px;
    margin-top: -8px;
}

.password-requirements p {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
}

.password-requirements ul {
    list-style: none;
    display: grid;
    gap: 8px;
}

.password-requirements li {
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dc3545;
}

.password-requirements li i {
    font-size: 14px;
}

/* === Form Options === */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: -8px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.checkbox-label a {
    color: var(--primary);
    font-weight: 600;
}

.checkbox-label a:hover {
    text-decoration: underline;
}

.forgot-link {
    font-size: 14px;
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.forgot-link:hover {
    color: var(--secondary);
}

/* === Alert Messages === */
.alert {
    padding: 16px 20px;
    border-radius: 12px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    animation: slideInDown 0.3s ease-out;
}

.alert i {
    font-size: 20px;
    flex-shrink: 0;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* === Divider === */
.auth-divider {
    position: relative;
    text-align: center;
    margin: 32px 0;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.auth-divider span {
    position: relative;
    background: var(--white);
    padding: 0 16px;
    font-size: 14px;
    color: #999;
}

/* === Social Auth === */
.social-auth {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 32px;
}

.social-btn {
    padding: 14px 24px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.social-btn i {
    font-size: 18px;
}

.social-btn.google {
    color: #DB4437;
}

.social-btn.apple {
    color: #000;
}

/* === Footer === */
.auth-footer {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.auth-footer p {
    font-size: 15px;
    color: #666;
}

.auth-footer a {
    color: var(--primary);
    font-weight: 600;
    transition: var(--transition-fast);
}

.auth-footer a:hover {
    color: var(--secondary);
    text-decoration: underline;
}

/* === Auth Links === */
.auth-links {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 24px;
}

.auth-links a {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #999;
    transition: var(--transition-fast);
}

.auth-links a:hover {
    color: var(--primary);
}

/* === Responsive === */
@media (max-width: 1024px) {
    .auth-container {
        grid-template-columns: 1fr;
    }
    
    .auth-left {
        display: none;
    }
    
    .auth-right {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .social-auth {
        grid-template-columns: 1fr;
    }
    
    .registration-steps {
        padding: 0 20px;
    }
    
    .step span {
        display: none;
    }
    
    .auth-links {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .auth-branding h1 {
        font-size: 32px;
    }
    
    .auth-form-header h2 {
        font-size: 26px;
    }
}
