:root {
    --navy: #0f172a;
    --gold: #b45309;
    --gold-hover: #92400e;
}

body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #111827 55%, #1e3a8a 100%);
    background-attachment: fixed;
}

.brand-text {
    font-family: 'Playfair Display', serif;
}

.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-gold-soft { color: #d6a85f; }
.letter-spacing-wide { letter-spacing: 2px; }

.gold-divider {
    width: 60px;
    height: 3px;
    background: var(--gold);
}

.badge-pill {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--gold);
    background: rgba(180, 83, 9, 0.1);
    border: 1px solid rgba(180, 83, 9, 0.25);
    padding: 5px 14px;
    border-radius: 50px;
}

/* Login Card */
.login-card {
    border-radius: 14px;
    border-top: 4px solid var(--gold) !important;
    background: #ffffff;
}

/* Inputs pick up brand color on focus */
.form-control:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 0.2rem rgba(180, 83, 9, 0.15);
}
.toggle-password { cursor: pointer; }

/* Captcha preview box */
.preview {
    font-family: 'Courier New', monospace;
    font-size: 1.4rem;
    font-weight: 800;
    font-style: italic;
    letter-spacing: 6px;
    color: var(--navy);
    background-color: #eef1f5;
    background-image: repeating-linear-gradient(45deg, transparent, transparent 8px, rgba(180,83,9,0.06) 8px, rgba(180,83,9,0.06) 16px);
    padding: 10px;
    border-radius: 6px;
    border: 1px dashed #cbd5e1;
    user-select: none;
    min-width: 0; /* allows it to shrink inside flex on narrow screens */
}

/* Refresh button: fixed circle size that Bootstrap utilities can't express directly */
.captcha-refresh {
    width: 44px;
    height: 44px;
}

/* Gold Button */
.btn-gold {
    background: var(--gold);
    color: #fff;
    border: none;
    border-radius: 8px;
    letter-spacing: 0.4px;
    transition: all 0.25s ease;
}
.btn-gold:hover {
    background: var(--gold-hover);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(180, 83, 9, 0.3);
}

.hover-link-gold:hover { color: var(--gold) !important; }

.spin-animation i {
    animation: spin 0.6s ease-in-out;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}



@media (max-width: 575.98px) {
    body {
        background-attachment: scroll;
    }
    /* Shrink the captcha letters slightly so 6 wide tracking-out
       characters never force the box wider than the card on
       very narrow phones. */
    .preview {
        font-size: 1.15rem;
        letter-spacing: 3px;
    }
}

@media (max-height: 700px) {
    body.min-vh-100 {
        min-height: auto !important;
    }
}