:root {
    --brand: #1B5599;
    --brand-dark: #144279;
    --brand-deep: #0B2A4A;
    --accent: #E8832A;
    --gold: #C9962B;
    --bg: #F3F3F3;
    --border: #C9C9C9;
    --text: #181818;
    --muted: #5C5C5C;
    --error: #BA0517;
    --error-bg: #FEF1EE;
    --focus: #0176D3;
}

* { box-sizing: border-box; }

html, body { height: 100%; margin: 0; }

body.login-page {
    font-family: "Salesforce Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 14px;
    color: var(--text);
    background: var(--bg);
}

.login-shell {
    display: grid;
    grid-template-columns: 60% 40%;
    min-height: 100vh;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
}
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(to top, rgba(11,42,74,.92) 0%, rgba(11,42,74,.55) 40%, rgba(11,42,74,.05) 75%);
}
.hero-content {
    position: relative;
    padding: 56px 56px 64px;
    max-width: 680px;
}
.hero-content h2 {
    margin: 0 0 24px;
    font-size: 32px;
    line-height: 1.25;
    font-weight: 300;
}
.hero-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.hero-points li { display: flex; align-items: center; gap: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Panel ---------- */
.panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 32px 24px;
    background: var(--bg);
}

.card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #E5E5E5;
    border-radius: 4px;
    padding: 32px 32px 28px;
    box-shadow: 0 2px 2px rgba(0,0,0,.1);
}

.logo { display: block; width: 260px; max-width: 100%; height: auto; margin: 0 auto 8px; }

.module-badge {
    display: block;
    width: max-content;
    margin: 0 auto 24px;
    padding: 2px 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--brand);
    background: #EAF1FA;
    border-radius: 12px;
}

h1 {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 400;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--accent);
    width: max-content;
}
.sub { margin: 10px 0 20px; color: var(--muted); }

.alert {
    background: var(--error-bg);
    border: 1px solid var(--error);
    border-radius: 4px;
    color: var(--error);
    padding: 10px 12px;
    margin-bottom: 16px;
}

.field { margin-bottom: 16px; }
.field label { display: block; margin-bottom: 4px; font-size: 12px; color: var(--muted); }

input[type=email], input[type=password], input[type=text] {
    width: 100%;
    height: 34px;
    padding: 0 12px;
    font: inherit;
    color: var(--text);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 4px;
    transition: border-color .1s, box-shadow .1s;
}
input:focus {
    outline: 0;
    border-color: var(--focus);
    box-shadow: 0 0 3px #0176D3;
}

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
    position: absolute; right: 4px; top: 3px; height: 28px;
    padding: 0 10px;
    border: 0; background: none;
    color: var(--brand); font: inherit; font-size: 12px; cursor: pointer;
    border-radius: 4px;
}
.pw-toggle:hover { background: #EAF1FA; }

.row { display: flex; justify-content: space-between; align-items: center; margin: 4px 0 20px; font-size: 13px; }
.check { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.link { color: var(--brand); text-decoration: none; }
.link:hover { text-decoration: underline; }

.btn-primary {
    position: relative;
    width: 100%;
    height: 36px;
    border: 1px solid var(--brand);
    border-radius: 4px;
    background: var(--brand);
    color: #fff;
    font: inherit;
    font-weight: 400;
    cursor: pointer;
    transition: background .1s;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-primary:focus-visible { outline: 0; box-shadow: 0 0 3px #0176D3; }

.spinner {
    display: none;
    position: absolute; right: 14px; top: 9px;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
.btn-primary.loading .spinner { display: block; }
.btn-primary.loading { pointer-events: none; opacity: .9; }
@keyframes spin { to { transform: rotate(360deg); } }

.foot { margin-top: 20px; font-size: 12px; color: var(--muted); text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; }
    .hero { display: none; }
    .card { padding: 24px 20px; }
}
