/* ==================== ROOT VARIABLES ==================== */
:root {
    --primary: #2e7d32;
    --primary-light: #4caf50;
    --primary-dark: #1b5e20;
    --secondary: #ff9800;
    --secondary-light: #ffb74d;
    --accent-red: #e53935;
    --accent-blue: #1976d2;
    --white: #ffffff;
    --off-white: #f5f5f5;
    --gray-100: #f0f0f0;
    --gray-200: #e0e0e0;
    --gray-300: #bdbdbd;
    --gray-400: #9e9e9e;
    --gray-600: #616161;
    --gray-800: #424242;
    --black: #212121;
    --gradient-primary: linear-gradient(135deg, #2e7d32 0%, #66bb6a 100%);
    --gradient-secondary: linear-gradient(135deg, #ff9800 0%, #ffb74d 100%);
    --gradient-dark: linear-gradient(135deg, #1b5e20 0%, #2e7d32 50%, #43a047 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);
    --shadow-xl: 0 12px 48px rgba(0,0,0,0.2);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 30px;
    --radius-full: 50%;
    --transition: 0.3s ease;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    background: var(--off-white);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ==================== SCROLLBAR ==================== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #c8e6c9; border-radius: 3px; }

/* ==================== BACKGROUND ==================== */
.auth-bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; }

.bg-shape { position: absolute; border-radius: var(--radius-full); opacity: 0.1; }
.shape-1 { width: 600px; height: 600px; background: var(--primary); top: -200px; right: -100px; animation: float 20s infinite ease-in-out; }
.shape-2 { width: 400px; height: 400px; background: var(--secondary); bottom: -100px; left: -100px; animation: float 15s infinite ease-in-out reverse; }
.shape-3 { width: 300px; height: 300px; background: var(--primary-light); top: 50%; left: 50%; transform: translate(-50%, -50%); animation: pulse-bg 10s infinite ease-in-out; }

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(20px, 20px) rotate(5deg); }
    50% { transform: translate(0, 40px) rotate(0deg); }
    75% { transform: translate(-20px, 20px) rotate(-5deg); }
}

@keyframes pulse-bg {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.1; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.15; }
}

/* ==================== AUTH CONTAINER ==================== */
.auth-container { display: flex; min-height: 100vh; }

/* ==================== BRANDING SIDE ==================== */
.auth-branding {
    width: 45%;
    background: linear-gradient(135deg, #1b5e20, #2e7d32, #43a047);
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--white);
}

.brand-logo i { font-size: 1.8rem; }
.brand-logo span { font-size: 1.5rem; font-weight: 700; letter-spacing: 1px; }

.brand-content { color: var(--white); max-width: 400px; }
.brand-content h1 { font-size: 2.2rem; margin-bottom: 12px; line-height: 1.2; }
.brand-content p { font-size: 1rem; opacity: 0.9; margin-bottom: 25px; }

.brand-features { display: flex; flex-wrap: wrap; gap: 10px; }

.brand-features .feature {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    font-size: 0.82rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-features .feature i { color: var(--secondary-light); }

.brand-image { position: relative; text-align: center; }
.brand-image img { max-width: 80%; border-radius: 14px; box-shadow: var(--shadow-xl); }

/* ==================== FORM SIDE ==================== */
.auth-form-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 35px;
    background: var(--white);
    overflow-y: auto;
}

.signup-container { justify-content: flex-start; padding-top: 25px; padding-bottom: 25px; }

.auth-form-box { width: 100%; max-width: 450px; }

.form-header { text-align: center; margin-bottom: 25px; }
.form-header h2 { font-size: 1.6rem; color: var(--primary); margin-bottom: 6px; }
.form-header p { color: var(--gray-600); font-size: 0.9rem; }

/* ==================== PROGRESS STEPS ==================== */
.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    gap: 8px;
}

.step { display: flex; flex-direction: column; align-items: center; gap: 5px; }

.step-number {
    width: 34px; height: 34px;
    border-radius: var(--radius-full);
    background: var(--gray-200);
    color: var(--gray-600);
    display: flex; align-items: center; justify-content: center;
    font-weight: 600; font-size: 0.82rem;
    transition: all 0.3s ease;
}

.step span { font-size: 0.68rem; color: var(--gray-400); font-weight: 500; }
.step.active .step-number { background: var(--primary); color: var(--white); box-shadow: 0 3px 10px rgba(46, 125, 50, 0.25); }
.step.active span { color: var(--primary); font-weight: 600; }
.step.completed .step-number { background: var(--primary-light); color: var(--white); }
.step.completed .step-number::after { content: '✓'; }

.step-line { width: 50px; height: 3px; background: var(--gray-200); border-radius: 2px; margin-bottom: 18px; }

/* ==================== AUTH MESSAGE ==================== */
.auth-message {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.82rem;
}

.auth-message.error { background: rgba(229, 57, 53, 0.08); color: var(--accent-red); border: 1px solid rgba(229, 57, 53, 0.15); }
.auth-message.success { background: rgba(46, 125, 50, 0.08); color: var(--primary); border: 1px solid rgba(46, 125, 50, 0.15); }
.auth-message.info { background: rgba(25, 118, 210, 0.08); color: var(--accent-blue); border: 1px solid rgba(25, 118, 210, 0.15); }

/* ==================== FORM STYLES ==================== */
.auth-form { display: flex; flex-direction: column; gap: 4px; }

.form-section {
    margin-bottom: 16px;
    padding: 18px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.form-section h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--primary);
    font-size: 0.88rem;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px dashed var(--gray-300);
}

.form-group { margin-bottom: 14px; }

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--gray-600);
    margin-bottom: 6px;
}

.form-group label i { color: var(--primary); font-size: 0.78rem; flex-shrink: 0; }

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    font-size: 0.88rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    background: var(--white);
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--gray-400); }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-row.three-col { grid-template-columns: 1fr 1fr 1fr; }

/* Phone Input */
.phone-input {
    display: flex;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
}

.phone-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); }

.phone-input .country-code {
    padding: 10px 12px;
    background: #f8f9fa;
    font-weight: 600;
    color: var(--gray-600);
    border-right: 2px solid var(--gray-200);
    font-size: 0.85rem;
    white-space: nowrap;
}

.phone-input input { border: none; border-radius: 0; padding-left: 12px; }
.phone-input input:focus { box-shadow: none; }

/* ==================== OTP STYLES ==================== */
.otp-info {
    text-align: center;
    margin-bottom: 16px;
    padding: 14px;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #eee;
}

.otp-info p { color: var(--gray-600); font-size: 0.82rem; margin-bottom: 8px; }
.otp-info strong { color: var(--primary); }

.change-number-btn {
    background: none; border: none;
    color: var(--accent-blue);
    font-size: 0.78rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 4px;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.change-number-btn:hover { background: rgba(25, 118, 210, 0.08); }

.otp-input-container { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }

.otp-box {
    width: 46px; height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 600;
    border: 2px solid var(--gray-200);
    border-radius: 12px;
    transition: all 0.2s ease;
    background: var(--white);
    font-family: 'Poppins', sans-serif;
}

.otp-box:focus { border-color: var(--primary); outline: none; box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1); }

.resend-otp { text-align: center; margin: 12px 0 16px; }
.resend-otp span { color: var(--gray-600); font-size: 0.78rem; }
.resend-otp strong { color: var(--primary); }

.resend-btn {
    background: none; border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 12px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.resend-btn:hover { background: rgba(46, 125, 50, 0.08); }

/* Verified Phone Display */
.verified-phone {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: rgba(46, 125, 50, 0.06);
    border: 1px solid rgba(46, 125, 50, 0.15);
    border-radius: 12px;
    color: var(--primary);
    font-size: 0.82rem;
    margin-top: 12px;
}

.verified-phone i { color: var(--primary); flex-shrink: 0; }
.verified-phone strong { color: var(--primary-dark); }

/* Password Input */
.password-input { position: relative; }
.password-input input { padding-right: 46px; }

.toggle-password {
    position: absolute; right: 12px; top: 50%;
    transform: translateY(-50%);
    background: none; border: none;
    color: var(--gray-400);
    cursor: pointer; padding: 4px;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
}

.toggle-password:hover { color: var(--primary); }

/* Password Strength */
.password-strength { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.strength-bar { flex: 1; height: 3px; background: var(--gray-200); border-radius: 2px; overflow: hidden; }
.strength-fill { height: 100%; width: 0%; transition: var(--transition); border-radius: 2px; }
.strength-fill.weak { width: 25%; background: var(--accent-red); }
.strength-fill.fair { width: 50%; background: var(--secondary); }
.strength-fill.good { width: 75%; background: var(--accent-blue); }
.strength-fill.strong { width: 100%; background: var(--primary); }
.strength-text { font-size: 0.68rem; font-weight: 600; min-width: 45px; }
.strength-text.weak { color: var(--accent-red); }
.strength-text.fair { color: var(--secondary); }
.strength-text.good { color: var(--accent-blue); }
.strength-text.strong { color: var(--primary); }

/* Form Options */
.form-options { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; flex-wrap: wrap; gap: 8px; }

.remember-me {
    display: flex; align-items: center; gap: 6px;
    cursor: pointer; font-size: 0.82rem; color: var(--gray-600);
}

.remember-me input { display: none; }

.remember-me .checkmark {
    width: 16px; height: 16px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.remember-me input:checked + .checkmark { background: var(--primary); border-color: var(--primary); }
.remember-me input:checked + .checkmark::after { content: '✓'; color: var(--white); font-size: 0.6rem; }

.forgot-link { color: var(--primary); text-decoration: none; font-size: 0.82rem; font-weight: 500; white-space: nowrap; }
.forgot-link:hover { text-decoration: underline; }

/* Terms Checkbox */
.terms-group { margin-top: 8px; }

.checkbox-label {
    display: flex; align-items: flex-start; gap: 8px;
    cursor: pointer; font-size: 0.78rem; color: var(--gray-600); line-height: 1.5;
}

.checkbox-label input { display: none; }

.checkbox-label .checkmark {
    width: 18px; height: 18px; min-width: 18px;
    border: 2px solid var(--gray-300);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
    margin-top: 1px;
}

.checkbox-label input:checked + .checkmark { background: var(--primary); border-color: var(--primary); }
.checkbox-label input:checked + .checkmark::after { content: '✓'; color: var(--white); font-size: 0.65rem; }
.checkbox-label a { color: var(--primary); text-decoration: none; }
.checkbox-label a:hover { text-decoration: underline; }

/* ==================== BUTTONS ==================== */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    padding: 13px 16px;
    background: linear-gradient(135deg, #2e7d32, #66bb6a);
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(46, 125, 50, 0.2);
}

.btn-primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(46, 125, 50, 0.3); }
.btn-primary:active:not(:disabled) { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

/* ==================== DIVIDER ==================== */
.auth-divider { display: flex; align-items: center; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--gray-200); }
.auth-divider span { padding: 0 12px; color: var(--gray-400); font-size: 0.78rem; }

/* ==================== SOCIAL LOGIN ==================== */
.social-login { display: flex; flex-direction: column; gap: 10px; }

.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    background: var(--white);
    border: 2px solid #eee;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    color: var(--gray-800);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-google:hover { border-color: var(--primary); background: #f8f9fa; transform: translateY(-2px); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06); }
.btn-google:active { transform: scale(0.97); }
.btn-google img { width: 20px; height: 20px; }

/* ==================== AUTH FOOTER ==================== */
.auth-footer { text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--gray-200); }
.auth-footer p { color: var(--gray-600); font-size: 0.82rem; }
.auth-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ==================== BACK HOME ==================== */
.back-home {
    display: flex; align-items: center; gap: 6px;
    margin-top: 25px;
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.82rem;
    transition: all 0.2s ease;
}

.back-home:hover { color: var(--primary); }

/* ==================== MODALS ==================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none; align-items: center; justify-content: center;
    z-index: 1000; padding: 20px; backdrop-filter: blur(5px);
}

.modal-overlay.active { display: flex; }

.modal-box {
    background: var(--white);
    border-radius: 14px;
    max-width: 480px; width: 100%;
    max-height: 90vh; overflow-y: auto;
    animation: slideUp 0.3s ease;
}

.modal-box.small { max-width: 400px; }

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px 22px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    display: flex; align-items: center; gap: 8px;
    color: var(--primary); font-size: 1.05rem; font-weight: 600;
}

.close-btn {
    width: 34px; height: 34px; min-width: 34px;
    background: var(--off-white); border: none;
    border-radius: var(--radius-full);
    color: var(--gray-600); cursor: pointer;
    transition: all 0.2s ease;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}

.close-btn:hover { background: var(--accent-red); color: var(--white); }

.modal-body { padding: 22px; }
.modal-body > p { color: var(--gray-600); margin-bottom: 16px; font-size: 0.85rem; }

/* Profile Welcome */
.profile-welcome { text-align: center; margin-bottom: 22px; }

.profile-welcome img {
    width: 70px; height: 70px;
    border-radius: var(--radius-full);
    border: 3px solid var(--primary);
    margin-bottom: 12px; object-fit: cover;
}

.profile-welcome h4 { color: var(--black); margin-bottom: 4px; font-size: 1.05rem; }
.profile-welcome p { color: var(--gray-600); font-size: 0.82rem; }

/* ==================== TOAST ==================== */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--white);
    color: var(--gray-800);
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    max-width: 420px;
    width: 90%;
    border-left: 4px solid var(--primary);
}

.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.toast.success { border-left-color: var(--primary); }
.toast.error { border-left-color: var(--accent-red); }
.toast.warning { border-left-color: var(--secondary); }
.toast.info { border-left-color: var(--accent-blue); }

.toast-body { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.toast-body i { font-size: 1.1rem; flex-shrink: 0; }
.toast.success .toast-body i { color: var(--primary); }
.toast.error .toast-body i { color: var(--accent-red); }
.toast.warning .toast-body i { color: var(--secondary); }
.toast.info .toast-body i { color: var(--accent-blue); }
.toast-body span { font-size: 0.85rem; font-weight: 500; }

/* ==================== LOADING ==================== */
.loading {
    position: fixed; inset: 0;
    background: rgba(255, 255, 255, 0.96);
    display: flex; align-items: center; justify-content: center;
    z-index: 3000;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.loading.hidden { opacity: 0; pointer-events: none; visibility: hidden; }
.loading-box { text-align: center; }

.spinner {
    width: 42px; height: 42px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary);
    border-radius: 50%;
    margin: 0 auto 14px;
    animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }
.loading-box span { color: #757575; font-size: 0.9rem; font-weight: 500; }

/* ==================== UTILITIES ==================== */
.hidden { display: none !important; }

/* ==================== RESPONSIVE - TABLET ==================== */
/* ==================== RESPONSIVE - TABLET ==================== */
@media (max-width: 1024px) {
    .auth-branding {
        width: 40%;
        padding: 28px;
    }

    .brand-content h1 {
        font-size: 1.8rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .auth-branding {
        width: 100%;
        padding: 25px 18px;
        min-height: auto;
    }

    .brand-content {
        text-align: center;
        max-width: 100%;
    }

    .brand-content h1 {
        font-size: 1.6rem;
    }

    .brand-content p {
        font-size: 0.88rem;
    }

    .brand-features {
        justify-content: center;
    }

    .brand-image {
        display: none;
    }

    .auth-form-container {
        padding: 25px 18px;
    }

    .form-row,
    .form-row.three-col {
        grid-template-columns: 1fr;
    }

    .otp-box {
        width: 40px;
        height: 46px;
        font-size: 1.2rem;
    }

    .otp-input-container {
        gap: 7px;
    }

    /* --- MODAL --- */
    .modal-overlay {
        padding: 10px;
    }

    .modal-box {
        max-width: 100%;
        max-height: 88vh;
    }

    .modal-header {
        padding: 14px 18px;
    }

    .modal-header h3 {
        font-size: 0.95rem;
    }

    .modal-body {
        padding: 18px;
    }

    /* --- TOAST --- */
    .toast {
        width: 94%;
        bottom: 16px;
    }
}

/* ==================== RESPONSIVE - SMALL MOBILE ==================== */
@media (max-width: 480px) {
    /* --- BRANDING --- */
    .auth-branding {
        padding: 18px 14px;
    }

    .brand-logo i {
        font-size: 1.5rem;
    }

    .brand-logo span {
        font-size: 1.3rem;
    }

    .brand-content h1 {
        font-size: 1.4rem;
    }

    .brand-content p {
        font-size: 0.82rem;
        margin-bottom: 18px;
    }

    .brand-features {
        gap: 6px;
    }

    .brand-features .feature {
        padding: 6px 10px;
        font-size: 0.75rem;
        gap: 5px;
    }

    .brand-features .feature i {
        font-size: 0.8rem;
    }

    /* --- FORM CONTAINER --- */
    .auth-form-container {
        padding: 20px 14px;
    }

    .signup-container {
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .form-header h2 {
        font-size: 1.35rem;
    }

    .form-header p {
        font-size: 0.82rem;
    }

    .form-header {
        margin-bottom: 20px;
    }

    /* --- PROGRESS STEPS --- */
    .progress-steps {
        gap: 4px;
        margin-bottom: 20px;
    }

    .step span {
        font-size: 0.6rem;
    }

    .step-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
    }

    .step-line {
        width: 35px;
        margin-bottom: 14px;
    }

    /* --- FORM SECTIONS --- */
    .form-section {
        padding: 14px;
        margin-bottom: 12px;
    }

    .form-section h4 {
        font-size: 0.82rem;
        gap: 5px;
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group input,
    .form-group textarea {
        padding: 9px 12px;
        font-size: 0.82rem;
    }

    .form-group label {
        font-size: 0.78rem;
    }

    .form-group label i {
        font-size: 0.72rem;
    }

    /* --- PHONE INPUT --- */
    .phone-input .country-code {
        padding: 9px 10px;
        font-size: 0.78rem;
    }

    /* --- OTP --- */
    .otp-box {
        width: 36px;
        height: 42px;
        font-size: 1.1rem;
        border-radius: 10px;
    }

    .otp-input-container {
        gap: 5px;
    }

    .otp-info {
        padding: 12px;
    }

    .otp-info p {
        font-size: 0.78rem;
    }

    .change-number-btn {
        font-size: 0.72rem;
    }

    .resend-otp span {
        font-size: 0.72rem;
    }

    .resend-btn {
        font-size: 0.78rem;
    }

    /* --- VERIFIED PHONE --- */
    .verified-phone {
        padding: 8px 12px;
        font-size: 0.78rem;
        gap: 6px;
    }

    /* --- PASSWORD STRENGTH --- */
    .password-strength {
        gap: 6px;
    }

    .strength-text {
        font-size: 0.62rem;
        min-width: 38px;
    }

    /* --- BUTTONS --- */
    .btn-primary,
    .btn-google {
        padding: 12px 14px;
        font-size: 0.82rem;
    }

    /* --- AUTH MESSAGE --- */
    .auth-message {
        padding: 8px 12px;
        font-size: 0.78rem;
        gap: 6px;
    }

    /* --- FORM OPTIONS --- */
    .form-options {
        gap: 6px;
    }

    .remember-me {
        font-size: 0.78rem;
    }

    .forgot-link {
        font-size: 0.78rem;
    }

    /* --- TERMS --- */
    .checkbox-label {
        font-size: 0.72rem;
    }

    .checkbox-label .checkmark {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    /* --- DIVIDER --- */
    .auth-divider {
        margin: 16px 0;
    }

    .auth-divider span {
        font-size: 0.72rem;
        padding: 0 10px;
    }

    /* --- SOCIAL LOGIN --- */
    .btn-google img {
        width: 18px;
        height: 18px;
    }

    /* --- AUTH FOOTER --- */
    .auth-footer {
        margin-top: 18px;
        padding-top: 14px;
    }

    .auth-footer p {
        font-size: 0.78rem;
    }

    /* --- BACK HOME --- */
    .back-home {
        margin-top: 18px;
        font-size: 0.78rem;
    }

    /* --- MODAL --- */
    .modal-header {
        padding: 14px 16px;
    }

    .modal-header h3 {
        font-size: 0.92rem;
        gap: 6px;
    }

    .modal-body {
        padding: 16px;
    }

    .modal-body > p {
        font-size: 0.8rem;
    }

    .profile-welcome img {
        width: 60px;
        height: 60px;
    }

    .profile-welcome h4 {
        font-size: 0.95rem;
    }

    .profile-welcome p {
        font-size: 0.78rem;
    }

    /* --- TOAST --- */
    .toast {
        padding: 10px 14px;
    }

    .toast-body span {
        font-size: 0.8rem;
    }

    .toast-body i {
        font-size: 1rem;
    }
}

/* ==================== RESPONSIVE - VERY SMALL ==================== */
@media (max-width: 340px) {
    /* --- BRANDING --- */
    .auth-branding {
        padding: 14px 12px;
    }

    .brand-logo i {
        font-size: 1.3rem;
    }

    .brand-logo span {
        font-size: 1.1rem;
    }

    .brand-content h1 {
        font-size: 1.15rem;
    }

    .brand-content p {
        font-size: 0.75rem;
        margin-bottom: 14px;
    }

    .brand-features .feature {
        padding: 5px 8px;
        font-size: 0.68rem;
    }

    /* --- FORM CONTAINER --- */
    .auth-form-container {
        padding: 16px 12px;
    }

    .form-header {
        margin-bottom: 16px;
    }

    .form-header h2 {
        font-size: 1.15rem;
    }

    .form-header p {
        font-size: 0.75rem;
    }

    /* --- PROGRESS STEPS --- */
    .progress-steps {
        gap: 2px;
        margin-bottom: 16px;
    }

    .step span {
        font-size: 0.55rem;
    }

    .step-number {
        width: 26px;
        height: 26px;
        font-size: 0.68rem;
    }

    .step-line {
        width: 25px;
        height: 2px;
        margin-bottom: 12px;
    }

    /* --- FORM SECTIONS --- */
    .form-section {
        padding: 10px;
        margin-bottom: 10px;
    }

    .form-section h4 {
        font-size: 0.75rem;
        margin-bottom: 10px;
        padding-bottom: 6px;
    }

    .form-group {
        margin-bottom: 10px;
    }

    .form-group input,
    .form-group textarea {
        padding: 8px 10px;
        font-size: 0.78rem;
        border-radius: 10px;
    }

    .form-group label {
        font-size: 0.72rem;
        margin-bottom: 4px;
    }

    .form-group label i {
        font-size: 0.68rem;
    }

    /* --- PHONE INPUT --- */
    .phone-input .country-code {
        padding: 8px 8px;
        font-size: 0.72rem;
    }

    .phone-input input {
        padding-left: 10px;
    }

    /* --- OTP --- */
    .otp-box {
        width: 30px;
        height: 36px;
        font-size: 0.95rem;
        border-radius: 8px;
    }

    .otp-input-container {
        gap: 4px;
    }

    .otp-info {
        padding: 10px;
    }

    .otp-info p {
        font-size: 0.72rem;
        margin-bottom: 6px;
    }

    .change-number-btn {
        font-size: 0.68rem;
        padding: 3px 6px;
    }

    .resend-otp {
        margin: 10px 0 14px;
    }

    .resend-otp span {
        font-size: 0.68rem;
    }

    .resend-btn {
        font-size: 0.72rem;
        padding: 4px 8px;
    }

    /* --- VERIFIED PHONE --- */
    .verified-phone {
        padding: 7px 10px;
        font-size: 0.72rem;
        gap: 5px;
        border-radius: 10px;
    }

    /* --- PASSWORD --- */
    .toggle-password {
        right: 8px;
    }

    .password-strength {
        gap: 5px;
        margin-top: 4px;
    }

    .strength-bar {
        height: 2px;
    }

    .strength-text {
        font-size: 0.58rem;
        min-width: 35px;
    }

    /* --- BUTTONS --- */
    .btn-primary,
    .btn-google {
        padding: 10px;
        font-size: 0.75rem;
        border-radius: 10px;
    }

    /* --- AUTH MESSAGE --- */
    .auth-message {
        padding: 7px 10px;
        font-size: 0.72rem;
        gap: 5px;
        border-radius: 10px;
    }

    /* --- FORM OPTIONS --- */
    .remember-me {
        font-size: 0.72rem;
    }

    .remember-me .checkmark {
        width: 14px;
        height: 14px;
    }

    .forgot-link {
        font-size: 0.72rem;
    }

    /* --- TERMS --- */
    .checkbox-label {
        font-size: 0.68rem;
    }

    .checkbox-label .checkmark {
        width: 16px;
        height: 16px;
        min-width: 16px;
    }

    /* --- DIVIDER --- */
    .auth-divider {
        margin: 14px 0;
    }

    .auth-divider span {
        font-size: 0.65rem;
    }

    /* --- SOCIAL LOGIN --- */
    .btn-google img {
        width: 16px;
        height: 16px;
    }

    /* --- AUTH FOOTER --- */
    .auth-footer {
        margin-top: 14px;
        padding-top: 12px;
    }

    .auth-footer p {
        font-size: 0.72rem;
    }

    /* --- BACK HOME --- */
    .back-home {
        margin-top: 14px;
        font-size: 0.72rem;
    }

    /* --- MODAL --- */
    .modal-header {
        padding: 12px 14px;
    }

    .modal-header h3 {
        font-size: 0.85rem;
    }

    .close-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
    }

    .modal-body {
        padding: 14px;
    }

    .modal-body > p {
        font-size: 0.75rem;
    }

    .profile-welcome img {
        width: 55px;
        height: 55px;
        border-width: 2px;
    }

    .profile-welcome h4 {
        font-size: 0.88rem;
    }

    .profile-welcome p {
        font-size: 0.72rem;
    }

    .profile-welcome {
        margin-bottom: 16px;
    }

    /* --- TOAST --- */
    .toast {
        width: 92%;
        bottom: 12px;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .toast-body span {
        font-size: 0.75rem;
    }

    .toast-body i {
        font-size: 0.9rem;
    }
}

/* ==================== PRINT ==================== */
@media print {
    .auth-branding,
    .auth-bg,
    .toast,
    .loading,
    .modal-overlay,
    .social-login,
    .auth-divider {
        display: none !important;
    }

    body {
        background: var(--white);
    }

    .auth-form-container {
        box-shadow: none;
    }
}