:root {
    --navy: #0b1f3a;
    --navy-mid: #132a4a;
    --gold: #c9a227;
    --gold-soft: #e4c86a;
    --cream: #f4efe4;
    --ink: #152033;
    --muted: #6b7385;
    --line: #e4ddd0;
    --danger: #9b2c2c;
}

* { box-sizing: border-box; }

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

body.bond-login {
    font-family: "Source Sans 3", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--navy);
}

.login-shell {
    min-height: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
}

.brand-pane {
    position: relative;
    overflow: hidden;
    padding: 48px 56px;
    color: #f7f1e4;
    background:
        radial-gradient(1200px 600px at -10% -20%, rgba(201, 162, 39, 0.18), transparent 55%),
        linear-gradient(160deg, #08162b 0%, #0e2747 48%, #16345a 100%);
}

.brand-pane::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(180deg, rgba(0,0,0,.55), transparent 78%);
    pointer-events: none;
}

.brand-inner {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mark {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-logo {
    height: 72px;
    width: auto;
    max-width: 168px;
    object-fit: contain;
    background: #fff;
    border-radius: 12px;
    padding: 6px 10px;
    flex: 0 0 auto;
}

.mark-name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 28px;
    letter-spacing: 0.04em;
    line-height: 1;
}

.mark-name span {
    display: block;
    margin-top: 4px;
    font-family: "Source Sans 3", sans-serif;
    font-size: 11px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-soft);
}

.hero-copy h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 600;
    font-size: clamp(36px, 4.4vw, 58px);
    line-height: 1.08;
    margin: 0 0 18px;
    max-width: 520px;
}

.hero-copy p {
    margin: 0;
    max-width: 460px;
    font-size: 16px;
    line-height: 1.6;
    color: rgba(247, 241, 228, 0.78);
}

.feature-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
}

.feature-list li {
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #f7f1e4;
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.08);
    border-radius: 999px;
    padding: 8px 14px;
}

.meta-row {
    display: flex;
    gap: 28px;
    flex-wrap: wrap;
    padding: 22px 0 8px;
    border-top: 1px solid rgba(201, 162, 39, 0.35);
}

.meta-item {
    min-width: 180px;
}

.meta-item small {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.meta-item span {
    font-size: 14px;
    color: rgba(247, 241, 228, 0.88);
}

.form-pane {
    background:
        radial-gradient(520px 280px at 80% 0%, rgba(201, 162, 39, 0.12), transparent 60%),
        var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 28px;
}

.login-card {
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 18px;
    padding: 36px 34px 28px;
    box-shadow: 0 28px 60px rgba(11, 31, 58, 0.14);
    border: 1px solid rgba(201, 162, 39, 0.18);
    position: relative;
}

.login-card::before {
    content: "";
    position: absolute;
    left: 34px;
    right: 34px;
    top: 0;
    height: 3px;
    border-radius: 0 0 3px 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.login-card h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 34px;
    font-weight: 600;
    margin: 0 0 8px;
}

.card-logo {
    display: block;
    height: 96px;
    width: auto;
    max-width: 240px;
    margin: 4px auto 16px;
    object-fit: contain;
}

.login-card .lede {
    margin: 0 0 28px;
    color: var(--muted);
    font-size: 15px;
}

.field {
    margin-bottom: 16px;
}

.field label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #4d5566;
    margin-bottom: 8px;
}

.field-box {
    position: relative;
}

.field-box input {
    width: 100%;
    height: 52px;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 10px;
    padding: 0 44px 0 14px;
    font-size: 16px;
    color: var(--ink);
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.field-box input:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(201, 162, 39, 0.16);
}

.toggle-pass {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7a8294;
    cursor: pointer;
    min-width: 44px;
    height: 32px;
    padding: 0 6px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.row-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 8px 0 22px;
    font-size: 14px;
    color: var(--muted);
}

.row-actions label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.btn-login {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(180deg, #17345c, var(--navy));
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    box-shadow: 0 10px 22px rgba(11, 31, 58, 0.18);
}

.btn-login:hover {
    background: linear-gradient(180deg, #1c3d6b, #10243f);
}

.toggle-pass:hover {
    color: var(--navy);
}

.alert-error {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 10px;
    background: #f8e8e8;
    color: var(--danger);
    border: 1px solid #e7c4c4;
    font-size: 14px;
}

.card-foot {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
    text-align: center;
    line-height: 1.6;
}

@media (max-width: 980px) {
    .login-shell {
        grid-template-columns: 1fr;
    }

    .brand-pane {
        min-height: auto;
        padding: 28px 24px 48px;
    }

    .meta-row {
        display: none;
    }

    .hero-copy h1 {
        font-size: 32px;
        max-width: none;
    }

    .form-pane {
        margin-top: -32px;
        padding-top: 0;
        position: relative;
        z-index: 2;
    }
}
