
:root {
    --navy:       #0d1b3e;
    --navy-mid:   #162553;
    --navy-light: #1e3470;
    --gold:       #c8972a;
    --gold-light: #f0c35a;
    --gold-pale:  #fdf3dd;
    --white:      #ffffff;
    --off-white:  #f7f8fc;
    --text-main:  #1a2340;
    --text-sub:   #6b7592;
    --border:     #e3e7f0;
    --shadow-sm:  0 2px 8px rgba(13,27,62,.08);
    --shadow-md:  0 8px 32px rgba(13,27,62,.14);
    --shadow-lg:  0 20px 60px rgba(13,27,62,.22);
    --radius:     14px;
    --input-h:    48px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Be Vietnam Pro', sans-serif;
    min-height: 100vh;
    background: var(--navy);
    display: flex;
    overflow: hidden;
}

/* ═══════════════════════════════════════
   LEFT PANEL
═══════════════════════════════════════ */
.left-panel {
    flex: 1;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 64px 72px;
    overflow: hidden;
    background: linear-gradient(150deg,
        #0a1530 0%,
        #112050 40%,
        #162980 70%,
        #0d1b3e 100%);
}

/* Animated aurora blobs */
.lp-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: .45;
    animation: blobFloat 12s ease-in-out infinite alternate;
}
.lp-blob-1 {
    width: 460px; height: 460px;
    top: -120px; right: -80px;
    background: radial-gradient(circle, #2a4db0 0%, transparent 70%);
    animation-delay: 0s;
}
.lp-blob-2 {
    width: 320px; height: 320px;
    bottom: -60px; left: -60px;
    background: radial-gradient(circle, #c8972a 0%, transparent 65%);
    opacity: .25;
    animation-delay: -4s;
}
.lp-blob-3 {
    width: 240px; height: 240px;
    top: 50%; left: 40%;
    background: radial-gradient(circle, #1a5fb5 0%, transparent 70%);
    opacity: .3;
    animation-delay: -8s;
}
@keyframes blobFloat {
    0%   { transform: translate(0,0) scale(1); }
    100% { transform: translate(30px,-30px) scale(1.12); }
}

/* Subtle grid */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
}

/* Diagonal divider line */
.left-panel::after {
    content: '';
    position: absolute;
    right: 0; top: 0; bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom,
        transparent 0%,
        rgba(200,151,42,.5) 30%,
        rgba(200,151,42,.5) 70%,
        transparent 100%);
}

/* Logo */
.lp-logo {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 64px;
    position: relative;
    z-index: 2;
}
.lp-logo-icon {
    width: 52px; height: 52px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--gold) 0%, #e8b840 100%);
    display: grid;
    place-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 700;
    color: var(--navy);
    box-shadow: 0 6px 20px rgba(200,151,42,.45);
    flex-shrink: 0;
}
.lp-logo-text .t1 {
    font-size: 17px;
    font-weight: 800;
    color: #fff;
    letter-spacing: .5px;
}
.lp-logo-text .t2 {
    font-size: 11px;
    color: rgba(255,255,255,.45);
    font-weight: 400;
    margin-top: 2px;
}

/* Heading */
.lp-heading {
    position: relative;
    z-index: 2;
    font-family: 'Cormorant Garamond', serif;
    font-size: 56px;
    font-weight: 600;
    color: #fff;
    line-height: 1.12;
    margin-bottom: 22px;
    letter-spacing: -.5px;
}
.lp-heading .gold { color: var(--gold-light); }

.lp-sub {
    position: relative;
    z-index: 2;
    font-size: 13.5px;
    color: rgba(255,255,255,.52);
    line-height: 1.75;
    max-width: 370px;
    margin-bottom: 52px;
}

/* Feature list */
.lp-features { position: relative; z-index: 2; display: flex; flex-direction: column; gap: 13px; }
.lp-feat { display: flex; align-items: center; gap: 13px; }
.lp-feat-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(200,151,42,.15);
    border: 1px solid rgba(200,151,42,.25);
    display: grid;
    place-items: center;
    color: var(--gold-light);
    font-size: 13px;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.lp-feat-text { font-size: 13px; color: rgba(255,255,255,.68); font-weight: 400; }

/* Accent badge (bottom-right of left panel) */
.lp-badge {
    position: absolute;
    bottom: 36px; right: 32px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.lp-badge-line {
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(200,151,42,.6));
    width: 80px;
}
.lp-badge-text {
    font-size: 10px;
    color: rgba(255,255,255,.3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 500;
}

/* ═══════════════════════════════════════
   RIGHT PANEL
═══════════════════════════════════════ */
.right-panel {
    width: 500px;
    flex-shrink: 0;
    background: var(--off-white);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    padding: 56px 52px;
    position: relative;
    overflow-y: auto;
}

/* Subtle top accent bar */
.right-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--navy) 0%, var(--gold) 50%, var(--navy-light) 100%);
}

/* Card header */
.rp-logo-sm {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 40px;
}
.rp-logo-sm-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: var(--navy);
    display: grid;
    place-items: center;
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--gold-light);
}
.rp-logo-sm-name {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
}

.rp-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 34px;
    font-weight: 600;
    color: var(--text-main);
    margin-bottom: 6px;
    line-height: 1.1;
}
.rp-sub {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 32px;
    line-height: 1.5;
}

/* ── Alert ── */
.alert-box {
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 500;
    border: 1px solid transparent;
}
.alert-ok   { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.alert-err  { background: #fef2f2; color: #991b1b; border-color: #fecaca; }
.alert-warn { background: #fffbeb; color: #92400e; border-color: #fde68a; }

/* ── Lockout bar ── */
.lockout-bar { height: 3px; background: #fee2e2; border-radius: 2px; margin: -8px 0 14px; overflow: hidden; }
.lockout-prg { height: 100%; background: linear-gradient(90deg, #ef4444, #dc2626); transition: width 1s linear; border-radius: 2px; }

/* ── Form groups ── */
.form-group { width: 100%; margin-bottom: 18px; }

.form-group label {
    font-size: 11.5px;
    font-weight: 700;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: .7px;
    margin-bottom: 8px;
    display: block;
}

/* Icon-prefixed input wrapper */
.input-wrap {
    position: relative;
}
.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9aa3bc;
    font-size: 14px;
    pointer-events: none;
    transition: color .2s;
}
.input-wrap:focus-within .input-icon { color: var(--navy); }

.form-group input {
    width: 100%;
    height: var(--input-h);
    padding: 0 44px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    background: var(--white);
    font-family: 'Be Vietnam Pro', sans-serif;
    color: var(--text-main);
    transition: border .2s, box-shadow .2s, background .2s;
}
.form-group input::placeholder { color: #b0b8cc; }
.form-group input:focus {
    outline: none;
    border-color: var(--navy);
    box-shadow: 0 0 0 3px rgba(13,27,62,.1);
    background: var(--white);
}

/* Password toggle */
.pwd-wrap { position: relative; }
.pwd-wrap input { padding-right: 46px; }
.pwd-toggle {
    position: absolute;
    right: 13px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #9aa3bc;
    font-size: 14px;
    padding: 0;
    line-height: 1;
    transition: color .2s;
}
.pwd-toggle:hover { color: var(--navy); }

/* Shake animation */
@keyframes shake {
    0%,100% { transform: translateX(0); }
    18%      { transform: translateX(-8px); }
    36%      { transform: translateX(8px); }
    54%      { transform: translateX(-5px); }
    72%      { transform: translateX(5px); }
}
.shake { animation: shake .45s ease; }

/* ── Submit button ── */
.btn-login {
    width: 100%;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
    color: #fff;
    border: none;
    font-size: 14px;
    font-weight: 700;
    font-family: 'Be Vietnam Pro', sans-serif;
    cursor: pointer;
    transition: all .25s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 6px;
    letter-spacing: .3px;
    box-shadow: 0 4px 16px rgba(13,27,62,.25);
    position: relative;
    overflow: hidden;
}
.btn-login::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,.08) 0%, transparent 60%);
    pointer-events: none;
}
.btn-login:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(13,27,62,.32);
    background: linear-gradient(135deg, #162250 0%, #2040a0 100%);
}
.btn-login:active:not(:disabled) { transform: translateY(0); box-shadow: var(--shadow-sm); }
.btn-login:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ── Divider + forgot link ── */
.rp-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 22px 0 0;
}
.rp-divider-line { flex: 1; height: 1px; background: var(--border); }
.rp-divider-text { font-size: 11.5px; color: #b0b8cc; font-weight: 500; white-space: nowrap; }

.rp-links {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}
.rp-link {
    font-size: 12.5px;
    color: var(--text-sub);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
    padding: 7px 14px;
    border-radius: 8px;
    transition: all .2s;
}
.rp-link:hover {
    background: var(--border);
    color: var(--navy);
}

/* ── Footer note ── */
.rp-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 11px;
    color: #c0c7d8;
    line-height: 1.6;
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 960px) {
    .left-panel  { display: none; }
    .right-panel { width: 100%; padding: 40px 32px; }
    .right-panel::before { display: none; }
    body { background: var(--off-white); }
}
@media (max-width: 480px) {
    .right-panel { padding: 32px 20px; }
    .rp-title    { font-size: 28px; }
}
