:root {
    color-scheme: light;
    --ink: #171717;
    --muted: #625e52;
    --line: #e4dfcc;
    --panel: #fffdf4;
    --accent: #facc15;
    --accent-dark: #8a5a00;
    --navy: #111111;
    --white: #ffffff;
    font-family: "DM Sans", sans-serif;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    background: var(--panel);
    color: var(--ink);
}

button, input { font: inherit; }
a { color: inherit; }

.login-shell {
    display: grid;
    grid-template-columns: minmax(340px, 43%) 1fr;
    min-height: 100vh;
}

.brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(32px, 5vw, 68px);
    color: var(--white);
    background: var(--navy);
}

.brand-panel::before,
.brand-panel::after {
    position: absolute;
    content: "";
    border: 1px solid rgba(250, 204, 21, .24);
    border-radius: 50%;
}

.brand-panel::before { width: 520px; height: 520px; right: -300px; top: -110px; }
.brand-panel::after { width: 680px; height: 680px; left: -430px; bottom: -410px; }

.brand {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: white;
    font: 700 24px/1 "Manrope", sans-serif;
    text-decoration: none;
}

.brand > span:last-child > span,
.mobile-brand strong { color: var(--accent); }

.brand-mark {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 3px;
    width: 34px;
    height: 34px;
    padding: 8px 7px;
    border-radius: 10px;
    background: var(--accent);
}

.brand-mark span { width: 4px; border-radius: 4px; background: var(--navy); }
.brand-mark span:nth-child(1) { height: 9px; }
.brand-mark span:nth-child(2) { height: 17px; }
.brand-mark span:nth-child(3) { height: 13px; }

.brand-copy {
    position: relative;
    z-index: 1;
    margin: auto 0;
    max-width: 560px;
}

.eyebrow, .welcome {
    margin: 0 0 22px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .18em;
}

.brand-copy h1 {
    margin: 0;
    font: 800 clamp(48px, 6vw, 82px)/.98 "Manrope", sans-serif;
    letter-spacing: -.055em;
}

.brand-copy h1 em { color: var(--accent); font-style: normal; }

.brand-copy > p:last-child {
    max-width: 470px;
    margin: 34px 0 0;
    color: #e5dfcf;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.7;
}

.brand-footer {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 18px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.brand-footer p { margin: 0; color: #b8b19e; font-size: 13px; line-height: 1.5; }
.brand-footer strong { color: #fff9df; font-weight: 600; }

.avatars { display: flex; padding-left: 8px; }
.avatars span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    margin-left: -8px;
    border: 2px solid var(--navy);
    border-radius: 50%;
    color: var(--navy);
    background: #fde68a;
    font-size: 9px;
    font-weight: 700;
}
.avatars span:nth-child(2) { background: #f2d49b; }
.avatars span:nth-child(3) { background: #d2c9ef; }

.form-panel {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 34px clamp(28px, 7vw, 110px) 26px;
    background: var(--white);
}

.mobile-brand { display: none; }

.login-card {
    width: min(100%, 455px);
    margin: auto;
}

.login-card header { margin-bottom: 36px; }
.welcome { margin-bottom: 15px; color: var(--accent-dark); }
.login-card h2 {
    margin: 0 0 10px;
    font: 800 clamp(30px, 3vw, 40px)/1.15 "Manrope", sans-serif;
    letter-spacing: -.035em;
}
.login-card header > p:last-child { margin: 0; color: var(--muted); }

.field { margin-bottom: 22px; }
.field label, .label-row { font-size: 14px; font-weight: 600; }
.field > label { display: inline-block; margin-bottom: 9px; }
.label-row { display: flex; justify-content: space-between; margin-bottom: 9px; }
.label-row a, .coming-soon { color: var(--accent-dark); font-size: 13px; text-decoration: none; }

.input-wrap { position: relative; }
.input-wrap > svg {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 19px;
    transform: translateY(-50%);
    fill: none;
    stroke: #829295;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.input-wrap input {
    width: 100%;
    height: 54px;
    padding: 0 48px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    color: var(--ink);
    background: #fffef8;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.input-wrap input::placeholder { color: #9a9585; }
.input-wrap input:focus {
    border-color: var(--accent);
    background: white;
    box-shadow: 0 0 0 4px rgba(250, 204, 21, .28);
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    padding: 7px;
    border: 0;
    border-radius: 8px;
    transform: translateY(-50%);
    background: transparent;
    cursor: pointer;
}
.password-toggle:hover { background: #fff5c7; }
.password-toggle svg { fill: none; stroke: #736d5d; stroke-width: 1.7; }

.remember {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin: 2px 0 26px;
    color: var(--muted);
    font-size: 13px;
    cursor: pointer;
}
.remember input { width: 17px; height: 17px; accent-color: var(--accent-dark); }

.submit-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 12px;
    color: #111111;
    background: var(--accent);
    box-shadow: 0 10px 24px rgba(250, 204, 21, .32);
    font-weight: 700;
    cursor: pointer;
    transition: transform .2s, background .2s, box-shadow .2s;
}
.submit-button:hover { background: #fbbf24; box-shadow: 0 13px 28px rgba(250, 204, 21, .42); transform: translateY(-1px); }
.submit-button:active { transform: translateY(0); }
.submit-button svg { width: 19px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }

.signup { margin: 28px 0 0; text-align: center; color: var(--muted); font-size: 14px; }
.signup a { color: var(--accent-dark); font-weight: 700; text-decoration: none; }
.signup a:hover { text-decoration: underline; }

.field-hint { margin: 7px 2px 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.button-link { text-decoration: none; }
.secondary-button { color: var(--white); background: var(--navy); box-shadow: none; }
.secondary-button:hover { background: #292929; box-shadow: none; }
.dashboard-info {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px 20px;
    margin-bottom: 30px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fffef8;
}
.dashboard-info span { color: var(--muted); font-size: 13px; }
.dashboard-info strong { overflow-wrap: anywhere; font-size: 14px; text-align: right; }

.alert { margin: -12px 0 25px; padding: 12px 15px; border: 1px solid; border-radius: 10px; font-size: 13px; line-height: 1.5; }
.alert p { margin: 0; }
.alert p + p { margin-top: 4px; }
.alert-error { border-color: #f1b8b8; color: #8d2e2e; background: #fff5f5; }
.alert-info { border-color: #f5cf4f; color: #795500; background: #fff9df; }

.form-panel footer {
    display: flex;
    justify-content: center;
    gap: 24px;
    color: #8f8977;
    font-size: 12px;
}
.form-panel footer a { text-decoration: none; }
.form-panel footer a:hover { color: var(--ink); }

@media (max-width: 860px) {
    .login-shell { display: block; }
    .brand-panel { display: none; }
    .form-panel { min-height: 100vh; padding: 28px 24px 22px; }
    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        color: var(--navy);
        font: 700 21px "Manrope", sans-serif;
    }
    .mobile-brand .brand-mark { width: 31px; height: 31px; padding: 7px 6px; }
    .login-card { margin: auto; padding: 50px 0; }
}

@media (max-width: 480px) {
    .form-panel { padding-inline: 19px; }
    .login-card h2 { font-size: 30px; }
    .login-card header { margin-bottom: 30px; }
    .form-panel footer { flex-wrap: wrap; gap: 10px 18px; }
    .form-panel footer span { width: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
