/* ==========================================================================
   SALON EAGLE — EXECUTIVE ADMIN LOGIN (Aura Luxury Design System)
   Platform: Desktop Web (1440x900 Viewport Optimized) & Mobile Responsive
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --brand-charcoal: #0D0D07;
    --brand-charcoal-card: #14140D;
    --brand-gold: #D4A017;
    --brand-gold-light: #F3D476;
    --brand-gold-bright: #F7E7B4;
    --brand-gold-dark: #99730D;
    --brand-surface: #F8F7F5;
    --brand-card: #FFFFFF;
    --brand-border: #E8E4DC;
    --brand-ink: #111109;
    --brand-muted: #64625A;
    --brand-muted-light: #9A9890;
    --gold-gradient-primary: linear-gradient(135deg, #F3D476 0%, #D4A017 50%, #B8820A 100%);
    --gold-gradient-sheen: linear-gradient(135deg, #14140D 0%, #1F1F14 60%, #362E16 100%);
}

* {
    box-sizing: border-box;
}

html, body.login-page-body {
    height: 100vh;
    height: 100dvh;
    max-height: 100vh;
    margin: 0;
    padding: 0;
    overflow: hidden !important;
}

body.login-page-body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--brand-charcoal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    position: relative;
    color: var(--brand-ink);
    background-image: 
        radial-gradient(circle at 50% 20%, rgba(212, 160, 23, 0.08) 0%, transparent 60%),
        radial-gradient(circle at 80% 80%, rgba(212, 160, 23, 0.04) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(212, 160, 23, 0.04) 0%, transparent 50%);
}

.font-serif-luxury {
    font-family: 'Instrument Serif', Georgia, serif;
}

/* Atmospheric Concentric Rings */
.concentric-ring {
    border: 1px solid rgba(212, 160, 23, 0.07);
    border-radius: 9999px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 1;
}

.ring-1 { width: 620px; height: 620px; }
.ring-2 { width: 920px; height: 920px; border-color: rgba(212, 160, 23, 0.045); }
.ring-3 { width: 1260px; height: 1260px; border-color: rgba(212, 160, 23, 0.03); }
.ring-4 { width: 1600px; height: 1600px; border-color: rgba(212, 160, 23, 0.018); }

/* Ambient Gold Spotlight */
.gold-spotlight {
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.12) 0%, rgba(212, 160, 23, 0.01) 65%, transparent 75%);
    filter: blur(80px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
}

/* Minimal Executive Topbar */
.login-header-nav {
    width: 100%;
    max-width: 1200px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.brand-telemetry-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(212, 160, 23, 0.2);
    border-radius: 9999px;
    font-size: 0.725rem;
    font-weight: 600;
    color: var(--brand-gold-light);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.brand-telemetry-tag .live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #10B981;
    box-shadow: 0 0 8px #10B981;
    animation: livePulse 2s infinite ease-in-out;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.top-time-display {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Elevated Login Container & Card (Optimized for 100vh no-scroll) */
.login-box-container {
    width: 100%;
    max-width: 430px;
    margin: auto 0;
    padding: 0.5rem 1rem;
    z-index: 20;
}

.login-card {
    background-color: #FFFFFF;
    border-radius: 24px;
    padding: 1.85rem 2rem 1.45rem;
    border: 1px solid rgba(212, 160, 23, 0.25);
    position: relative;
    box-shadow: 
        0 20px 50px -10px rgba(0, 0, 0, 0.75),
        0 0 40px rgba(212, 160, 23, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Decorative Gold Top Sheen */
.login-card-gold-accent {
    position: absolute;
    top: -1px;
    left: 2.5rem;
    right: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, transparent 0%, #D4A017 35%, #F3D476 50%, #D4A017 65%, transparent 100%);
    border-radius: 9999px;
    box-shadow: 0 0 12px rgba(212, 160, 23, 0.6);
}

/* Clean Luxury Brand Logo */
.login-brand-logo-wrap {
    margin: 0 auto 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-brand-logo-img {
    width: 95px;
    height: 95px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 5px 14px rgba(212, 160, 23, 0.22)) drop-shadow(0 2px 5px rgba(0, 0, 0, 0.08));
    transition: transform 0.28s ease, filter 0.28s ease;
    user-select: none;
}

.login-brand-logo-img:hover {
    transform: scale(1.05);
    filter: drop-shadow(0 8px 20px rgba(212, 160, 23, 0.35)) drop-shadow(0 3px 8px rgba(0, 0, 0, 0.12));
}

/* Typography Inside Card */
.card-title-serif {
    font-size: 1.85rem;
    font-weight: 500;
    color: #111109;
    line-height: 1.15;
    margin-bottom: 0.2rem;
    letter-spacing: -0.01em;
}

.card-subtitle-ui {
    font-size: 0.775rem;
    color: var(--brand-muted);
    font-weight: 500;
    margin-bottom: 1.15rem;
    letter-spacing: 0.01em;
}

/* Error Banner with Entrance Shake */
.login-error-alert {
    background-color: #FEECEB;
    border: 1px solid #FCA5A5;
    border-radius: 12px;
    padding: 0.65rem 0.85rem;
    margin-bottom: 1rem;
    color: #B91C1C;
    font-size: 0.775rem;
    line-height: 1.35;
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    animation: shakeEntrance 0.4s ease-in-out;
}

@keyframes shakeEntrance {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-5px); }
    40%, 80% { transform: translateX(5px); }
}

.login-error-alert i {
    font-size: 1.1rem;
    color: #DC2626;
    flex-shrink: 0;
    margin-top: 1px;
}

/* Form Groups & Inputs */
.form-group-wrap {
    margin-bottom: 0.85rem;
    position: relative;
}

.form-label-custom {
    display: block;
    font-size: 0.69rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #1C1B14;
    margin-bottom: 0.3rem;
}

.input-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-prefix {
    position: absolute;
    left: 0.95rem;
    color: #8C8A80;
    font-size: 1rem;
    pointer-events: none;
    transition: color 0.2s ease;
    z-index: 2;
}

.login-input-field {
    width: 100%;
    padding: 0.68rem 1rem 0.68rem 2.65rem;
    border-radius: 12px;
    background-color: #F8F7F5;
    border: 1.5px solid #E8E4DC;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    color: #111109;
    outline: none;
    transition: all 0.2s ease;
}

.login-input-field::placeholder {
    color: #A3A199;
    font-weight: 400;
}

.login-input-field:focus {
    border-color: var(--brand-gold);
    background-color: #FFFFFF;
    box-shadow: 0 0 0 4px rgba(212, 160, 23, 0.16);
}

.input-icon-wrapper:focus-within .input-icon-prefix {
    color: var(--brand-gold-dark);
}

/* Password Toggle Icon */
.password-toggle-btn {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0.4rem;
    color: #8C8A80;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background-color 0.2s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    color: #111109;
    background-color: rgba(0, 0, 0, 0.05);
}

/* Caps Lock Warning Alert Badge */
.caps-lock-pill {
    display: none;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.4rem;
    font-size: 0.725rem;
    font-weight: 600;
    color: #92400E;
    background-color: #FEF3C7;
    border: 1px solid #FCD34D;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    width: fit-content;
}

/* Forgot Passkey Link */
.forgot-passkey-link {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--brand-gold-dark);
    text-decoration: none;
    transition: color 0.2s ease;
}

.forgot-passkey-link:hover {
    color: #6E5105;
    text-decoration: underline;
}

/* Custom Checkbox */
.remember-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.8125rem;
    color: var(--brand-muted);
    font-weight: 500;
    cursor: pointer;
    user-select: none;
}

.custom-checkbox-input {
    width: 17px;
    height: 17px;
    border-radius: 5px;
    border: 1.5px solid #D1CDC4;
    accent-color: #B8820A;
    cursor: pointer;
}

.ssl-badge-meta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #059669;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
}

/* Submit Action Button (Obsidian Black with White Typography) */
.btn-login-submit-portal {
    width: 100%;
    padding: 0.78rem 1.25rem;
    border-radius: 12px;
    background-color: #111109;
    color: #FFFFFF;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.025em;
    cursor: pointer;
    border: 1px solid #111109;
    box-shadow: 0 4px 16px rgba(17, 17, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.22s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 0.35rem;
}

.btn-login-submit-portal:hover {
    background-color: #1F1F14;
    color: #FFFFFF;
    border-color: rgba(212, 160, 23, 0.5);
    box-shadow: 0 6px 22px rgba(17, 17, 9, 0.4), 0 0 14px rgba(212, 160, 23, 0.18);
    transform: translateY(-1px);
}

.btn-login-submit-portal i {
    transition: transform 0.2s ease;
}

.btn-login-submit-portal:hover i {
    transform: translateX(3px);
}

.btn-login-submit-portal:active {
    background-color: #0A0A05;
    color: #FFFFFF;
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(17, 17, 9, 0.3);
}

.btn-login-submit-portal:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Telemetry Security Card */
.audit-telemetry-panel {
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid #F1EFE9;
    text-align: center;
}

.telemetry-ip-line {
    font-size: 0.725rem;
    color: var(--brand-muted-light);
    line-height: 1.5;
}

.telemetry-ip-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 600;
    color: #4A4842;
    background-color: #F5F3ED;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    border: 1px solid #E8E5DD;
}

/* Page Footer */
.login-footer-wrap {
    width: 100%;
    max-width: 1200px;
    padding: 0.65rem 1.5rem;
    text-align: center;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
    z-index: 10;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 500;
}

.login-footer-link {
    color: var(--brand-gold-light);
    text-decoration: none;
    transition: color 0.2s ease;
}

.login-footer-link:hover {
    color: #FFFFFF;
    text-decoration: underline;
}

/* Modal Custom Styles */
.modal-content.luxury-modal {
    border-radius: 20px;
    border: 1px solid rgba(212, 160, 23, 0.3);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.luxury-modal-header {
    background: #111109;
    color: #FFFFFF;
    border-bottom: 1px solid rgba(212, 160, 23, 0.25);
    padding: 1.25rem 1.5rem;
}

.luxury-modal-header .btn-close {
    filter: invert(1) grayscale(100%) brightness(200%);
}

.support-contact-chip {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 1.15rem;
    border-radius: 12px;
    background-color: #F8F7F5;
    border: 1px solid #E8E4DC;
    margin-bottom: 0.75rem;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.support-contact-chip:hover {
    border-color: var(--brand-gold);
    background-color: #FFFFFF;
}

.support-chip-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: linear-gradient(135deg, #F3D476 0%, #D4A017 100%);
    color: #111109;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Responsive Breakpoints */
@media (max-width: 576px) {
    .login-box-container {
        padding: 0.75rem;
    }
    .login-card {
        padding: 2rem 1.35rem 1.5rem;
        border-radius: 22px;
    }
    .card-title-serif {
        font-size: 1.75rem;
    }
    .top-time-display {
        display: none;
    }
}