:root {
    --bg: #0d0e0c;
    --bg-deep: #090a08;
    --surface: #141510;
    --surface-2: #191913;
    --cream: #f2ede3;
    --gold: #c9a35f;
    --gold-light: #e0c17f;
    --line: rgba(232, 216, 184, .14);
    --muted: rgba(242, 237, 227, .52);
    --serif: 'DM Serif Display', Georgia, serif;
    --sans: 'Manrope', Arial, sans-serif;
}

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

body {
    min-width: 320px;
    background: var(--bg);
    color: var(--cream);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
svg { display: block; }

.login-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(420px, 1.08fr) minmax(480px, .92fr);
}

.login-brand-panel {
    position: relative;
    min-height: 100vh;
    padding: clamp(34px, 4.6vw, 72px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    isolation: isolate;
    border-right: 1px solid var(--line);
    background:
        linear-gradient(140deg, rgba(13,14,12,.96), rgba(13,14,12,.78)),
        radial-gradient(circle at 70% 42%, #242015 0%, var(--bg-deep) 68%);
}

.brand-grid {
    position: absolute;
    inset: 0;
    z-index: -2;
    opacity: .24;
    background-image:
        linear-gradient(rgba(201,163,95,.075) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201,163,95,.075) 1px, transparent 1px);
    background-size: 72px 72px;
    mask-image: linear-gradient(125deg, #000, transparent 76%);
}

.brand-glow {
    position: absolute;
    z-index: -1;
    width: 560px;
    height: 560px;
    right: -240px;
    top: 16%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,163,95,.11), transparent 68%);
}

.brand { display: inline-flex; align-items: center; gap: 12px; width: fit-content; }
.brand-mark { width: 40px; height: 40px; display: grid; place-items: center; color: var(--gold); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark path { fill: none; stroke: currentColor; stroke-linecap: round; }
.brand-mark path:first-child { stroke-width: 1.6; }
.brand-mark path:last-child { stroke-width: 1.35; }
.brand-wordmark { display: flex; align-items: baseline; gap: 6px; letter-spacing: .08em; line-height: 1; }
.brand-wordmark strong { font-size: 1.05rem; font-weight: 800; }
.brand-wordmark span { color: var(--gold); font-family: var(--serif); font-size: 1.08rem; letter-spacing: .06em; }

.brand-message { max-width: 690px; margin: auto 0; padding: 88px 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 11px; color: var(--gold-light); font-size: .68rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow i { width: 26px; height: 1px; background: currentColor; }
.brand-message h1 {
    max-width: 690px;
    margin-top: 25px;
    font-family: var(--serif);
    font-size: clamp(3.5rem, 5.7vw, 6.6rem);
    font-weight: 400;
    line-height: .96;
    letter-spacing: -.04em;
}
.brand-message > p { max-width: 590px; margin-top: 28px; color: var(--muted); font-size: .98rem; line-height: 1.85; }

.brand-assurance {
    min-height: 72px;
    padding-top: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--line);
}
.brand-assurance > div { display: flex; align-items: center; gap: 12px; }
.assurance-icon { width: 36px; height: 36px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(201,163,95,.22); border-radius: 50%; }
.assurance-icon svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.brand-assurance small, .brand-assurance strong { display: block; }
.brand-assurance small { color: rgba(242,237,227,.34); font-size: .54rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.brand-assurance strong { margin-top: 2px; color: rgba(242,237,227,.75); font-size: .67rem; }
.assurance-status { display: flex; align-items: center; gap: 8px; color: rgba(242,237,227,.42); font-size: .62rem; font-weight: 700; white-space: nowrap; }
.assurance-status i { width: 6px; height: 6px; border-radius: 50%; background: #78936f; box-shadow: 0 0 12px rgba(120,147,111,.7); }

.login-access-panel {
    position: relative;
    min-height: 100vh;
    padding: clamp(32px, 4.5vw, 68px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(circle at 50% 48%, rgba(201,163,95,.045), transparent 42%),
        var(--surface);
}

.back-link {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: rgba(242,237,227,.46);
    font-size: .7rem;
    font-weight: 700;
    transition: color .2s ease;
}
.back-link:hover { color: var(--gold-light); }
.back-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s ease; }
.back-link:hover svg { transform: translateX(-3px); }

.login-card { width: min(100%, 470px); margin: 64px auto; }
.login-kicker { color: var(--gold); font-size: .66rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-header h2 { margin-top: 13px; font-family: var(--serif); font-size: clamp(2.7rem, 4vw, 4rem); font-weight: 400; line-height: 1; letter-spacing: -.025em; }
.login-header p { margin-top: 15px; color: var(--muted); font-size: .88rem; }

.login-form { margin-top: 38px; }
.form-group { margin-bottom: 22px; }
.form-group label { display: block; margin-bottom: 9px; color: rgba(242,237,227,.72); font-size: .7rem; font-weight: 800; }
.label-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.label-row a { margin-bottom: 9px; color: var(--gold); font-size: .65rem; font-weight: 700; transition: color .2s ease; }
.label-row a:hover { color: var(--gold-light); }
.form-group input {
    width: 100%;
    height: 55px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 3px;
    outline: none;
    background: rgba(255,255,255,.018);
    color: var(--cream);
    font-size: .82rem;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.form-group input::placeholder { color: rgba(242,237,227,.25); }
.form-group input:hover { border-color: rgba(224,193,127,.3); }
.form-group input:focus { border-color: var(--gold); background: rgba(201,163,95,.025); box-shadow: 0 0 0 3px rgba(201,163,95,.08); }
.form-group input[aria-invalid="true"] { border-color: #a85f52; }

.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.password-field button {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 34px;
    height: 34px;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    border: 0;
    background: transparent;
    color: rgba(242,237,227,.35);
    cursor: pointer;
}
.password-field button:hover { color: var(--gold-light); }
.password-field svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.eye-closed, .password-field button[aria-pressed="true"] .eye-open { display: none; }
.password-field button[aria-pressed="true"] .eye-closed { display: block; }

.form-message { display: none; margin: -4px 0 16px; color: #d58c7e; font-size: .68rem; line-height: 1.5; }
.form-message.visible { display: block; }

.login-button, .create-account {
    width: 100%;
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border-radius: 3px;
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .025em;
    cursor: pointer;
    transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.login-button { border: 1px solid var(--gold); background: var(--gold); color: #18130b; }
.login-button:hover { transform: translateY(-2px); background: var(--gold-light); border-color: var(--gold-light); box-shadow: 0 18px 42px rgba(201,163,95,.18); }
.login-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.login-divider { margin: 27px 0; display: flex; align-items: center; gap: 14px; color: rgba(242,237,227,.27); font-size: .62rem; font-weight: 700; }
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.create-account { border: 1px solid var(--line); color: rgba(242,237,227,.72); background: rgba(255,255,255,.012); }
.create-account:hover { transform: translateY(-2px); border-color: var(--gold); color: var(--gold-light); background: rgba(201,163,95,.03); }
.demo-access { margin-top: 20px; text-align: center; color: rgba(242,237,227,.28); font-size: .61rem; }
.demo-access strong { color: rgba(242,237,227,.5); }

.access-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; color: rgba(242,237,227,.26); font-size: .62rem; }
.access-footer a { transition: color .2s ease; }
.access-footer a:hover { color: var(--gold-light); }

@media (max-width: 980px) {
    .login-page { grid-template-columns: 1fr; }
    .login-brand-panel { min-height: 420px; padding: 34px; }
    .brand-message { padding: 70px 0; }
    .brand-message h1 { max-width: 720px; font-size: clamp(3.4rem, 8vw, 5.5rem); }
    .login-access-panel { min-height: auto; padding: 40px 34px; }
    .login-card { margin: 80px auto; }
}

@media (max-width: 620px) {
    .login-brand-panel { min-height: 360px; padding: 26px 20px; }
    .brand-message { padding: 65px 0 25px; }
    .brand-message h1 { font-size: clamp(3rem, 14vw, 4.4rem); }
    .brand-message > p, .brand-assurance { display: none; }
    .login-access-panel { padding: 28px 20px; }
    .login-card { margin: 68px auto; }
    .login-header h2 { font-size: 2.75rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition-duration: .01ms !important; }
}
