/* ==================== AUTH LAYOUT ==================== */
body.auth-body {
    background: linear-gradient(135deg, #f0f7ff 0%, #eff4ff 50%, #fef3c7 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.auth-container {
    width: 100%;
    max-width: 1050px;
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(37, 99, 235, 0.15);
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 640px;
    position: relative;
}

/* ==================== SIMPLE HEADER ==================== */
.auth-header {
    padding: 20px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}
.auth-header .back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #555;
    font-size: 14px;
    transition: 0.2s;
}
.auth-header .back-link:hover { color: #2563eb; }

/* ==================== LEFT SIDE - BANNER ==================== */
.auth-banner {
    background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #7c3aed 100%);
    padding: 50px 45px;
    color: white;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Animated shapes */
.auth-banner::before,
.auth-banner::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    animation: floatShape 8s ease-in-out infinite;
}
.auth-banner::before {
    width: 300px;
    height: 300px;
    top: -100px;
    inset-inline-end: -100px;
}
.auth-banner::after {
    width: 200px;
    height: 200px;
    bottom: -50px;
    inset-inline-start: -50px;
    animation-delay: 3s;
}
@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -20px) scale(1.05); }
}

.banner-content {
    position: relative;
    z-index: 2;
}

.banner-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 50px;
}
.banner-logo i {
    background: rgba(255,255,255,0.2);
    padding: 10px;
    border-radius: 12px;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.banner-title {
    font-size: 38px;
    line-height: 1.1;
    font-weight: 800;
    margin-bottom: 18px;
}
.banner-title .accent {
    background: linear-gradient(45deg, #fde047, #fbbf24);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.banner-text {
    font-size: 15px;
    opacity: 0.9;
    line-height: 1.7;
    margin-bottom: 35px;
    max-width: 380px;
}

/* Features List */
.banner-features {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
    z-index: 2;
}
.banner-feature {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
}
.feature-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.15);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    flex-shrink: 0;
}
.feature-text strong { display: block; margin-bottom: 2px; }
.feature-text small { opacity: 0.8; font-size: 12px; }

/* Testimonial */
.banner-testimonial {
    background: rgba(255,255,255,0.1);
    border-radius: 16px;
    padding: 20px;
    margin-top: 25px;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.15);
    position: relative;
    z-index: 2;
}
.testimonial-stars {
    color: #fde047;
    font-size: 14px;
    margin-bottom: 8px;
}
.testimonial-text {
    font-size: 13px;
    line-height: 1.6;
    margin-bottom: 12px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fde047, #f59e0b);
    color: #7c2d12;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
}
.testimonial-info strong { display: block; font-size: 13px; }
.testimonial-info small { opacity: 0.7; font-size: 11px; }

/* ==================== RIGHT SIDE - FORM ==================== */
.auth-form-side {
    padding: 50px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-y: auto;
}

.auth-tabs {
    display: flex;
    background: #f5f6fa;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 28px;
    position: relative;
}
.auth-tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #888;
    border-radius: 9px;
    transition: 0.3s;
    position: relative;
    z-index: 1;
}
.auth-tab.active {
    background: white;
    color: #2563eb;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* Form Section */
.form-section {
    display: none;
    animation: fadeSlide 0.4s ease;
}
.form-section.active { display: block; }

@keyframes fadeSlide {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-header {
    margin-bottom: 28px;
}
.form-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
    color: #1a1a2e;
}
.form-header p {
    color: #777;
    font-size: 14px;
}

/* ==================== SOCIAL LOGIN ==================== */
.social-login {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
    margin-bottom: 24px;
}
.social-btn {
    background: white;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    padding: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    transition: 0.2s;
}
.social-btn:hover {
    border-color: #2563eb;
    background: #f0f7ff;
    transform: translateY(-2px);
}
.social-btn i { font-size: 18px; }
.social-btn.google i { color: #ea4335; }
.social-btn.facebook i { color: #1877f2; }
.social-btn.apple i { color: #000; }

.divider-text {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #aaa;
    font-size: 13px;
    margin: 20px 0;
}
.divider-text::before,
.divider-text::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

/* ==================== FORM ==================== */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.input-group {
    position: relative;
}
.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
}
.input-group label .required { color: #ef4444; }
.input-group .input-with-icon {
    position: relative;
}
.input-with-icon i.input-icon {
    position: absolute;
    inset-inline-start: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 15px;
    transition: 0.2s;
}
.input-with-icon input,
.input-with-icon select {
    width: 100%;
    padding-top: 13px;
    padding-bottom: 13px;
    padding-inline-start: 42px;
    padding-inline-end: 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #fafbfc;
    font-family: inherit;
}
.input-with-icon input:focus,
.input-with-icon select:focus {
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 4px rgba(37,99,235,0.1);
}
.input-with-icon input:focus + i.input-icon,
.input-with-icon:focus-within i.input-icon {
    color: #2563eb;
}

/* Password toggle */
.password-toggle {
    position: absolute;
    inset-inline-end: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    font-size: 15px;
    padding: 5px;
    transition: 0.2s;
}
.password-toggle:hover { color: #2563eb; }

/* Form row (2 columns) */
.form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* Password strength */
.password-strength {
    margin-top: 8px;
}
.strength-bars {
    display: flex;
    gap: 4px;
    margin-bottom: 6px;
}
.strength-bar {
    flex: 1;
    height: 4px;
    background: #e5e7eb;
    border-radius: 4px;
    transition: 0.3s;
}
.strength-bar.weak { background: #ef4444; }
.strength-bar.fair { background: #f59e0b; }
.strength-bar.good { background: #3b82f6; }
.strength-bar.strong { background: #10b981; }
.strength-text {
    font-size: 11px;
    color: #888;
}
.strength-text strong { color: #1a1a2e; }

/* Form options row */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
    flex-wrap: wrap;
    gap: 10px;
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    cursor: pointer;
    color: #555;
}
.checkbox-group input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: #2563eb;
    cursor: pointer;
    border-radius: 4px;
}
.checkbox-group a { color: #2563eb; font-weight: 500; }
.forgot-link {
    color: #2563eb;
    font-size: 13px;
    font-weight: 500;
}
.forgot-link:hover { text-decoration: underline; }

/* Submit Button */
.btn-submit {
    width: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: 0.2s;
    box-shadow: 0 8px 20px rgba(37,99,235,0.25);
}
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(37,99,235,0.4);
}

/* Switch text */
.switch-form {
    text-align: center;
    font-size: 14px;
    color: #777;
    margin-top: 22px;
}
.switch-form a {
    color: #2563eb;
    font-weight: 600;
}
.switch-form a:hover { text-decoration: underline; }

/* ==================== OTP/PHONE INPUT ==================== */
.phone-input-group {
    display: flex;
    gap: 8px;
}
.country-code {
    width: 110px;
    padding: 13px 12px;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 14px;
    background: #fafbfc;
    cursor: pointer;
    outline: none;
}
.phone-input-group .input-with-icon {
    flex: 1;
}

/* ==================== FORGOT PASSWORD VIEW ==================== */
.forgot-view {
    text-align: center;
}
.forgot-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #f59e0b;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    margin: 0 auto 20px;
}
.forgot-view h2 {
    font-size: 24px;
    margin-bottom: 10px;
}
.forgot-view p {
    color: #777;
    font-size: 14px;
    margin-bottom: 25px;
    line-height: 1.6;
}
.back-to-login {
    background: none;
    border: none;
    color: #2563eb;
    cursor: pointer;
    font-size: 14px;
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}
.back-to-login:hover { text-decoration: underline; }

/* ==================== RESPONSIVE ==================== */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 500px;
        min-height: auto;
    }
    .auth-banner {
        padding: 35px 30px;
        order: -1;
    }
    .banner-logo { margin-bottom: 25px; }
    .banner-title { font-size: 26px; }
    .banner-text { font-size: 13px; margin-bottom: 22px; }
    .banner-features { gap: 12px; }
    .feature-icon { width: 36px; height: 36px; font-size: 14px; }
    .banner-feature { font-size: 13px; }
    .banner-testimonial { margin-top: 18px; padding: 16px; }
    .auth-form-side { padding: 35px 30px; }
}

@media (max-width: 576px) {
    .auth-wrapper { padding: 0; }
    .auth-container {
        border-radius: 0;
        min-height: 100vh;
        max-width: 100%;
        box-shadow: none;
    }
    .auth-header { padding: 14px 18px; }
    .auth-banner {
        padding: 28px 22px;
    }
    .banner-logo { font-size: 20px; margin-bottom: 20px; }
    .banner-title { font-size: 22px; }
    .banner-text { display: none; }
    .banner-features { display: none; }
    .banner-testimonial { display: none; }
    
    .auth-form-side { padding: 28px 22px; }
    .form-header h1 { font-size: 22px; }
    .form-header p { font-size: 13px; }
    
    .social-login {
        gap: 8px;
    }
    .social-btn {
        padding: 10px;
        font-size: 0;
    }
    .social-btn i { font-size: 20px; }
    
    .form-row-2 { grid-template-columns: 1fr; }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
    }
}