:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --red: #c8102e;
    --red-dark: #9f0b23;
    --green: #08783e;
    --ink: #25282d;
    --muted: #626973;
    --line: #d9dde2;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 8%, rgba(8, 120, 62, .08), transparent 24rem),
        radial-gradient(circle at 88% 90%, rgba(200, 16, 46, .08), transparent 26rem),
        #edf0f2;
}

a { color: var(--red-dark); }

.login-shell {
    width: min(1240px, calc(100% - 32px));
    min-height: min(780px, calc(100vh - 48px));
    margin: 24px auto;
    display: grid;
    grid-template-columns: minmax(420px, .9fr) minmax(440px, 1.1fr);
    overflow: hidden;
    border: 1px solid rgba(83, 89, 98, .2);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(28, 33, 39, .16);
}

.login-panel {
    z-index: 2;
    padding: clamp(34px, 5vw, 68px);
    align-self: center;
}

.brand {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}

.brand-mark {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 15px;
    color: #fff;
    font-weight: 850;
    letter-spacing: -.06em;
    background: linear-gradient(135deg, var(--green) 0 34%, #fff 34% 66%, var(--red) 66%);
    text-shadow: 0 1px 4px rgba(0, 0, 0, .75);
    box-shadow: 0 8px 20px rgba(31, 38, 44, .15);
}

.brand strong, .brand span { display: block; }
.brand strong { font-size: 1rem; }
.brand span { max-width: 300px; margin-top: 2px; color: var(--muted); font-size: .74rem; line-height: 1.35; }

.testing-notice {
    display: flex;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid #eccd78;
    border-radius: 12px;
    background: #fff8de;
    color: #6d5210;
    font-size: .82rem;
    line-height: 1.45;
}

.testing-notice p { margin: 0; }
.eyebrow { margin: 30px 0 8px; color: var(--green); font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1 { max-width: 630px; margin: 0; font-size: clamp(2rem, 3.5vw, 3.35rem); line-height: 1.02; letter-spacing: -.045em; }
.intro { max-width: 620px; margin: 18px 0 26px; color: var(--muted); line-height: 1.65; }

form > label { display: block; margin: 16px 0 7px; font-size: .86rem; font-weight: 700; }
input[type="text"], input[type="password"] {
    width: 100%;
    min-height: 50px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fbfcfc;
    color: var(--ink);
    font: inherit;
    outline: 0;
}
input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(8, 120, 62, .1); }
.password-field { position: relative; }
.password-field input { padding-right: 74px; }
.password-field button { position: absolute; inset: 6px 7px 6px auto; border: 0; border-radius: 8px; padding: 0 12px; background: #e8ebee; color: #454b53; font-weight: 700; cursor: pointer; }
.form-options { display: flex; justify-content: space-between; gap: 16px; margin: 15px 0 22px; color: var(--muted); font-size: .78rem; }
.remember { display: flex; gap: 8px; align-items: center; }
.remember small { display: block; }
.coming-soon { text-align: right; }
.submit-button { width: 100%; min-height: 52px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--red), var(--red-dark)); font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 12px 24px rgba(159, 11, 35, .22); }
.submit-button:hover { filter: brightness(1.05); }
.form-error { margin: 16px 0; padding: 12px 14px; border: 1px solid #efb4bd; border-radius: 10px; background: #fff0f2; color: #8d1026; font-size: .86rem; }
.privacy { margin: 22px 0 0; color: #747b84; font-size: .75rem; line-height: 1.55; }

.becky-panel { position: relative; min-height: 720px; overflow: hidden; background: linear-gradient(145deg, #e2e6e8, #bfc5c9); }
.becky-panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #fff 0, rgba(255,255,255,.28) 18%, transparent 48%), linear-gradient(0deg, rgba(21,25,28,.6), transparent 35%); pointer-events: none; }
.becky-panel img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.becky-caption { position: absolute; z-index: 2; right: 32px; bottom: 32px; left: 32px; color: #fff; }
.becky-caption strong, .becky-caption span { display: block; }
.becky-caption strong { font-size: 1.22rem; }
.becky-caption span { margin-top: 6px; opacity: .8; font-size: .83rem; }

@media (max-width: 900px) {
    .login-shell { grid-template-columns: 1fr; margin: 0; width: 100%; min-height: 100vh; border: 0; border-radius: 0; }
    .becky-panel { min-height: 430px; grid-row: 1; }
    .becky-panel::after { background: linear-gradient(0deg, #fff 0, transparent 34%), linear-gradient(0deg, rgba(21,25,28,.45), transparent 50%); }
    .login-panel { margin-top: -40px; padding: 30px 24px 44px; border-radius: 26px 26px 0 0; background: #fff; }
    .brand { margin-bottom: 18px; }
}

@media (max-width: 520px) {
    .becky-panel { min-height: 330px; }
    .form-options { align-items: flex-start; flex-direction: column; }
    .coming-soon { text-align: left; }
    h1 { font-size: 2.12rem; }
}
