/* ============================================================
   TRAVIDENCE — login.css
   Standalone styles for Login page (Layout = null)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --red:      #C41E1E;
    --red-dark: #A01818;
    --navy:     #1A2035;
    --navy-mid: #232B45;
    --gold:     #F5A623;
    --gray:     #4A5568;
    --border:   #E2E8F0;
    --white:    #FFFFFF;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--navy);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body::before {
    content: '';
    position: fixed;
    top: -30%; right: -20%;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(196,30,30,.12) 0%, transparent 70%);
    pointer-events: none;
}

body::after {
    content: '';
    position: fixed;
    bottom: -20%; left: -15%;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(245,166,35,.06) 0%, transparent 70%);
    pointer-events: none;
}

/* ── Container ──────────────────────────────────────────────── */
.login-container {
    display: flex;
    width: 100%; max-width: 940px; min-height: 560px;
    border-radius: 20px; overflow: hidden;
    box-shadow: 0 25px 60px rgba(0,0,0,.45);
    position: relative; z-index: 1;
}

/* ── Brand panel (left) ─────────────────────────────────────── */
.brand-panel {
    flex: 1.15;
    background: linear-gradient(145deg, #1A2035 0%, #232B45 55%, #1A2035 100%);
    padding: 48px 44px;
    display: flex; flex-direction: column; justify-content: space-between;
    position: relative; overflow: hidden;
}

.brand-panel::before {
    content: '';
    position: absolute;
    top: -60px; right: -60px;
    width: 280px; height: 280px;
    border-radius: 50%;
    border: 60px solid rgba(196,30,30,.12);
}

.brand-panel::after {
    content: '';
    position: absolute;
    bottom: -80px; left: -40px;
    width: 240px; height: 240px;
    border-radius: 50%;
    border: 50px solid rgba(245,166,35,.07);
}

.brand-logo         { position: relative; z-index: 1; }
.brand-logo img     { height: 42px; filter: brightness(0) invert(1); }
.brand-tagline      { font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 10px; }
.brand-content      { position: relative; z-index: 1; }
.brand-eyebrow      { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.brand-headline     { font-size: 30px; font-weight: 800; color: var(--white); line-height: 1.25; margin-bottom: 14px; }
.brand-headline span{ color: var(--gold); }
.brand-desc         { font-size: 13.5px; color: rgba(255,255,255,.5); line-height: 1.7; margin-bottom: 28px; }
.feature-list       { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.feature-item       { display: flex; align-items: center; gap: 12px; font-size: 13px; color: rgba(255,255,255,.72); }
.feature-dot        { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.brand-footer       { position: relative; z-index: 1; }
.brand-since        { font-size: 12px; color: rgba(255,255,255,.3); font-style: italic; }
.brand-since span   { color: var(--gold); }

/* ── Login panel (right) ────────────────────────────────────── */
.login-panel {
    flex: .85;
    background: var(--white);
    padding: 7px 44px;
    display: flex; flex-direction: column; justify-content: center;
}

.login-brand            { padding: 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.login-brand img        { max-width: 100%; }
.login-eyebrow          { font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--red); margin-bottom: 8px; }
.login-title            { font-size: 26px; font-weight: 800; color: var(--navy); margin-bottom: 5px; }
.login-subtitle         { font-size: 13.5px; color: var(--gray); margin-bottom: 30px; }

/* ── Alert ──────────────────────────────────────────────────── */
.alert-error {
    background: #FFF5F5;
    border: 1px solid rgba(196,30,30,.25);
    border-radius: 10px;
    padding: 11px 15px;
    font-size: 13px; color: #9B1C1C;
    margin-bottom: 18px;
    display: flex; align-items: center; gap: 8px;
}
.alert-error.hidden { display: none; }

/* ── Form ───────────────────────────────────────────────────── */
.form-group  { margin-bottom: 20px; }
.form-label  { display: block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--gray); margin-bottom: 7px; }
.input-wrap  { position: relative; }
.input-icon  { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-size: 15px; opacity: .4; pointer-events: none; }
.form-input  { width: 100%; padding: 13px 14px 13px 42px; border: 1.5px solid var(--border); border-radius: 10px; font-size: 14px; color: var(--navy); background: #FAFBFC; outline: none; transition: all .2s; }
.form-input:focus { border-color: var(--navy); background: var(--white); box-shadow: 0 0 0 4px rgba(26,32,53,.07); }

/* ── Sign in button ─────────────────────────────────────────── */
.btn-signin {
    width: 100%; padding: 14px;
    background: var(--navy); color: var(--white);
    border: none; border-radius: 10px;
    font-size: 15px; font-weight: 700; cursor: pointer;
    transition: all .2s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    margin-top: 6px;
}
.btn-signin:hover           { background: var(--navy-mid); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,32,53,.3); }
.btn-signin.loading         { opacity: .7; cursor: not-allowed; pointer-events: none; }
.btn-signin.loading .spinner{ display: block; }
.btn-signin.loading .btn-text{ display: none; }

/* ── Spinner ────────────────────────────────────────────────── */
.spinner {
    width: 17px; height: 17px;
    border: 2px solid rgba(255,255,255,.3); border-top-color: white;
    border-radius: 50%; animation: spin .7s linear infinite;
    display: none;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Footer ─────────────────────────────────────────────────── */
.login-footer { margin-top: 28px; text-align: center; font-size: 12px; color: #A0AEC0; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 680px) {
    .brand-panel { display: none; }
    .login-container { max-width: 420px; border-radius: 16px; }
    .login-panel { padding: 38px 28px; }
}
