    /* ── Layout ─────────────────────────────────────────────────────────── */

    .auth-container {
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 24px;
        background: linear-gradient(135deg, #eef2ff 0%, #f8fafc 100%);
    }

    .auth-card {
        width: 100%;
        max-width: 520px;
        background: #fff;
        border-radius: 20px;
        padding: 32px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
        border: 1px solid #e5e7eb;
    }

    .register-card { max-width: 560px; }

    /* ── Header ─────────────────────────────────────────────────────────── */

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

    .auth-header h1 {
        margin: 0 0 10px;
        font-size: 2rem;
        font-weight: 700;
        color: #111827;
    }

    .auth-header p {
        margin: 0;
        color: #6b7280;
        font-size: 0.95rem;
    }

    /* ── Form ───────────────────────────────────────────────────────────── */

    .auth-form { width: 100%; }

    .form-group { width: 100%; }

    .form-label {
        display: inline-block;
        margin-bottom: 8px;
        font-size: 0.95rem;
        font-weight: 600;
        color: #374151;
    }

    .form-control {
        width: 100%;
        border: 1px solid #d1d5db;
        border-radius: 12px;
        padding: 14px 16px;
        font-size: 1rem;
        background: #fff;
        transition: all 0.2s ease;
        outline: none;
    }

    .form-control:focus {
        border-color: #4f46e5;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.12);
    }

    .form-control::placeholder { color: #9ca3af; }

    .form-control-lg { min-height: 52px; }

    /* ── Input group ────────────────────────────────────────────────────── */

    .input-group {
        display: flex;
        align-items: stretch;
        width: 100%;
    }

    .input-group .form-control {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    .input-group .btn {
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    /* ── Buttons ────────────────────────────────────────────────────────── */

    .auth-form .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        border: none;
        cursor: pointer;
        text-decoration: none;
        transition: all 0.2s ease;
        border-radius: 12px;
        font-weight: 600;
        padding: 12px 18px;
        font-size: 1rem;
    }

    .auth-form .btn:hover { transform: translateY(-1px); }

    .auth-form .btn-primary             { background: #4f46e5; color: #fff; }
    .auth-form .btn-primary:hover       { background: #4338ca; }
    .auth-form .btn-outline-secondary   { background: #fff; border: 1px solid #d1d5db; color: #374151; }
    .auth-form .btn-outline-secondary:hover { background: #f3f4f6; }
    .auth-form .btn-outline-danger      { background: #fff; border: 1px solid #ef4444; color: #ef4444; }
    .auth-form .btn-outline-danger:hover { background: #ef4444; color: #fff; }
    .auth-form .btn-outline-dark        { background: #fff; border: 1px solid #111827; color: #111827; }
    .auth-form .btn-outline-dark:hover  { background: #111827; color: #fff; }
    .auth-form .btn-lg                  { min-height: 54px; font-size: 1rem; }

    .w-100 { width: 100%; }

    /* ── Alerts ─────────────────────────────────────────────────────────── */

    .alert {
        position: relative;
        padding: 14px 18px;
        border-radius: 12px;
        margin-bottom: 18px;
        font-size: 0.95rem;
    }

    .alert-danger  { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; }
    .alert-success { background: #ecfdf5; border: 1px solid #bbf7d0; color: #166534; }

    .btn-close {
        position: absolute;
        top: 10px; right: 12px;
        background: transparent;
        border: none;
        font-size: 1.1rem;
        cursor: pointer;
    }

    /* ── Checkbox ───────────────────────────────────────────────────────── */

    .form-check {
        display: flex;
        align-items: flex-start;
        gap: 10px;
    }

    .form-check-input {
        margin-top: 4px;
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

    .form-check-label { font-size: 0.92rem; color: #4b5563; }

    /* ── Links ──────────────────────────────────────────────────────────── */

    .link-primary { color: #4f46e5; }

    /* ── Divider ────────────────────────────────────────────────────────── */

    .divider {
        position: relative;
        text-align: center;
        margin: 24px 0;
    }

    .divider::before {
        content: "";
        position: absolute;
        top: 50%; left: 0;
        width: 100%; height: 1px;
        background: #e5e7eb;
    }

    .divider span {
        position: relative;
        z-index: 1;
        background: #fff;
        padding: 0 14px;
        color: #6b7280;
        font-size: 0.9rem;
    }

    /* ── OAuth ──────────────────────────────────────────────────────────── */

    .oauth-section { width: 100%; }

    .oauth-btn {
        font-weight: 600;
        transition: all 0.3s;
    }

    .oauth-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    /* ── Footer ─────────────────────────────────────────────────────────── */

    .auth-footer {
        margin-top: 28px;
        text-align: center;
        font-size: 0.95rem;
        color: #6b7280;
        padding-top: 20px;
        border-top: 1px solid #eee;
    }

    .auth-footer p { margin: 0; color: #666; font-size: 14px; }

    /* ── Password strength ──────────────────────────────────────────────── */

    .password-strength {
        width: 100%;
        display: none;
    }

    .password-strength.active { display: block; }

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

    .strength-meter-fill {
        height: 100%;
        width: 0%;
        transition: all 0.3s ease;
    }

    .strength-meter-fill.weak   { width: 25%;  background: #dc3545; }
    .strength-meter-fill.fair   { width: 50%;  background: #ffc107; }
    .strength-meter-fill.good   { width: 75%;  background: #17a2b8; }
    .strength-meter-fill.strong { width: 100%; background: #28a745; }

    .strength-text { font-size: 12px; }

    /* ── Text helpers ───────────────────────────────────────────────────── */

    .text-muted   { color: #6b7280; }
    .text-success { color: #16a34a; }
    .text-danger  { color: #dc2626; }

    .form-text {
        display: block;
        margin-top: 6px;
        font-size: 0.85rem;
    }

    /* ── Spacing helpers ────────────────────────────────────────────────── */

    .mb-2 { margin-bottom: 12px; }
    .mb-3 { margin-bottom: 18px; }
    .mt-2 { margin-top: 12px; }

    /* ── Popup-specific overrides ───────────────────────────────────────── */

    .popup form { text-align: left; }
    .popup .input-box { height: 43px; }
    .popup .auth-form .btn-lg { min-height: 45px; }

    .popup .auth-form .toggle-password-btn {
        min-height: 38px;
        height: 43px;
        border-top-left-radius: 0;
        border-bottom-left-radius: 0;
    }

    .popup .auth-form [name="password"] {
        border-top-right-radius: 0;
        border-bottom-right-radius: 0;
    }

    #registerPopup .main-content {
        overflow-y: visible;
    }

    /* ── Responsive ─────────────────────────────────────────────────────── */

    @media (max-width: 768px) {
        .auth-container { padding: 16px; align-items: flex-start; }
        .auth-card { padding: 24px 18px; border-radius: 16px; }
        .auth-header h1 { font-size: 1.7rem; }
        .auth-form .btn,
        .auth-form .form-control { font-size: 16px; }
    }

    @media (max-width: 576px) {
        .auth-card { padding: 25px; }
        .auth-header h1 { font-size: 22px; }
    }

    @media (max-width: 480px) {
        .auth-card { padding: 20px 16px; }
        .auth-header h1 { font-size: 1.5rem; }
        .auth-form .btn-lg,
        .auth-form .form-control-lg { min-height: 48px; }
        .auth-form .btn { padding: 12px 14px; }
    }
