:root {
    --ink: #17252d;
    --muted: #718087;
    --paper: #f5f7f5;
    --line: #dce5e2;
    --blue: #1769aa;
    --blue-dark: #0b3558;
    --gold: #d4a65b;
}

* { box-sizing: border-box; }

body {
    min-height: 100vh;
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(340px, 0.92fr) minmax(420px, 1.08fr);
    min-height: 100vh;
}

.login-intro {
    position: relative;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: clamp(32px, 6vw, 88px);
    background: var(--blue-dark);
    isolation: isolate;
}

.login-intro::before,
.login-intro::after {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(212, 166, 91, .35);
    border-radius: 50%;
    content: '';
}

.login-intro::before {
    width: 520px;
    height: 520px;
    top: -180px;
    right: -220px;
}

.login-intro::after {
    width: 360px;
    height: 360px;
    right: -125px;
    bottom: -170px;
}

.intro-content { max-width: 500px; color: #fff; }

.brand-mark {
    position: absolute;
    top: clamp(32px, 6vw, 88px);
    left: clamp(32px, 6vw, 88px);
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.brand-mark span {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 1px solid var(--gold);
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 18px;
}

.intro-content h1 {
    max-width: 480px;
    margin: 0 0 20px;
    color: #fff;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: clamp(38px, 4.5vw, 64px);
    line-height: 1.08;
}

.intro-content p {
    max-width: 390px;
    margin: 0;
    color: rgba(255, 255, 255, .72);
    font-size: 16px;
    line-height: 1.7;
}

.login-panel {
    display: grid;
    place-items: center;
    padding: 48px clamp(28px, 8vw, 120px);
    background: #fff;
}

.login-card { width: min(100%, 430px); }

.login-card h2 {
    margin: 0 0 9px;
    color: var(--ink);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -.03em;
}

.login-card .subtitle {
    margin: 0 0 34px;
    color: var(--muted);
    font-size: 15px;
}

.field { margin-bottom: 22px; }

.field label {
    display: block;
    margin-bottom: 9px;
    color: #31434a;
    font-size: 13px;
    font-weight: 700;
}

.field input {
    width: 100%;
    height: 54px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 4px;
    outline: 0;
    color: var(--ink);
    background: #fbfcfb;
    font: inherit;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.field input:focus {
    border-color: var(--blue);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(23, 105, 170, .14);
}

.field input::placeholder { color: #a8b3b2; }

.error-message {
    margin-top: 7px;
    color: #b84444;
    font-size: 12px;
}

.form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 3px 0 28px;
}

.remember {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 13px;
}

.remember input { accent-color: var(--blue); }

.login-button {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 4px;
    color: #fff;
    background: var(--blue);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    transition: background .2s, transform .2s;
}

.login-button:hover { background: var(--blue-dark); transform: translateY(-1px); }

.secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 24px 0 0;
    color: #9aa5a6;
    font-size: 12px;
}

.secure-note::before {
    width: 7px;
    height: 9px;
    border: 1px solid currentColor;
    border-radius: 2px;
    content: '';
}

@media (max-width: 760px) {
    .login-shell { display: block; }
    .login-intro { min-height: 340px; padding: 88px 28px 42px; }
    .brand-mark { top: 30px; left: 28px; }
    .intro-content h1 { font-size: 40px; }
    .login-panel { min-height: calc(100vh - 340px); padding: 48px 28px; }
}
