:root {
    color-scheme: light;
    --bg: #f3f4f6;
    --surface: #ffffff;
    --text: #25282d;
    --muted: #6b7280;
    --line: #dfe2e7;
    --orange: #e87822;
    --orange-dark: #c95e0f;
    --danger: #b42318;
    --danger-bg: #fef3f2;
    --green: #169b62;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

.topbar, footer {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.topbar { min-height: 88px; }
.brand { display: block; width: 136px; height: auto; }

.secure {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #4b5563;
    font-size: 13px;
    font-weight: 650;
}

.secure > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 5px rgb(22 155 98 / 12%);
}

main {
    display: grid;
    place-items: center;
    padding: 32px 20px 64px;
}

.login-panel {
    width: min(100%, 440px);
    padding: 36px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgb(32 36 42 / 8%);
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--orange-dark);
    font-size: 12px;
    font-weight: 800;
}

h1 { margin: 0; font-size: 27px; line-height: 1.2; }
.intro > p:last-child { margin: 10px 0 28px; color: var(--muted); font-size: 15px; }

form { display: grid; gap: 10px; }
label { margin-top: 7px; font-size: 13px; font-weight: 700; }

input {
    width: 100%;
    min-height: 46px;
    padding: 0 13px;
    border: 1px solid #cfd4da;
    border-radius: 6px;
    background: #fff;
    color: var(--text);
    font: inherit;
    outline: none;
}

input:focus {
    border-color: var(--orange);
    box-shadow: 0 0 0 3px rgb(232 120 34 / 13%);
}

.password-field { position: relative; }
.password-field input { padding-right: 48px; }

.icon-button {
    position: absolute;
    right: 4px;
    top: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    background: transparent;
    color: #67717d;
    cursor: pointer;
}

.icon-button svg {
    width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.primary {
    min-height: 47px;
    margin-top: 12px;
    border: 0;
    border-radius: 6px;
    background: var(--orange);
    color: #fff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.primary:hover { background: var(--orange-dark); }

.alert {
    padding: 9px 11px;
    border: 1px solid #fecdca;
    border-radius: 5px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 13px;
    line-height: 1.4;
}

.links {
    margin-top: 24px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    font-size: 13px;
}

a { color: #555e68; font-weight: 650; }
a:hover { color: var(--orange-dark); }

footer {
    min-height: 76px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 560px) {
    .topbar, footer { width: calc(100% - 32px); }
    .topbar { min-height: 72px; }
    .brand { width: 112px; }
    main { padding: 18px 16px 40px; align-items: start; }
    .login-panel { padding: 28px 22px; }
    .links { flex-direction: column; gap: 11px; }
}
