:root {
    color-scheme: light;
    --ink: #14252e;
    --muted: #63747a;
    --primary: #173a5e;
    --primary-shift: #155d68;
    --paper: #fffdf8;
    --accent: #d7748b;
    --accent-light: #e4aa74;
    --line: rgba(20, 37, 46, 0.14);
    --danger: #9f2f1f;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    min-height: 100dvh;
    color: var(--ink);
    background:
        radial-gradient(circle at 15% 18%, rgba(215, 116, 139, 0.24), transparent 26rem),
        radial-gradient(circle at 86% 80%, rgba(49, 183, 166, 0.2), transparent 28rem),
        linear-gradient(135deg, var(--primary), var(--primary-shift));
}

button,
input {
    font: inherit;
}

button:focus-visible,
input:focus-visible {
    outline: 3px solid rgba(215, 116, 139, 0.48);
    outline-offset: 3px;
}

.login-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.login-card {
    width: min(100%, 440px);
    padding: clamp(26px, 6vw, 42px);
    border: 1px solid rgba(255, 255, 255, 0.42);
    border-radius: 24px;
    background: color-mix(in srgb, var(--paper) 96%, transparent);
    box-shadow: 0 28px 70px rgba(8, 28, 43, 0.34);
}

.brand-mark {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-bottom: 28px;
    border-radius: 16px;
    background: var(--primary);
    box-shadow: 0 10px 24px rgba(23, 58, 94, 0.2);
}

.brand-mark span {
    width: 3px;
    border-radius: 99px;
    background: var(--accent);
}

.brand-mark span:nth-child(even) {
    background: var(--accent-light);
}

.brand-mark span:nth-child(1) { height: 13px; }
.brand-mark span:nth-child(2) { height: 25px; }
.brand-mark span:nth-child(3) { height: 33px; }
.brand-mark span:nth-child(4) { height: 19px; }

.login-heading {
    margin-bottom: 25px;
}

.eyebrow {
    margin: 0 0 6px;
    color: var(--primary-shift);
    font-size: 0.7rem;
    font-weight: 780;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 8vw, 2.7rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.login-heading p:last-child {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.55;
}

.login-error {
    margin: 0 0 18px;
    padding: 11px 13px;
    color: var(--danger);
    border: 1px solid rgba(159, 47, 31, 0.22);
    border-radius: 10px;
    background: rgba(159, 47, 31, 0.07);
    font-size: 0.82rem;
    line-height: 1.45;
}

.login-form {
    display: grid;
    gap: 9px;
}

.login-form label {
    font-size: 0.76rem;
    font-weight: 750;
}

.login-form input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #ffffff;
    box-shadow: inset 0 1px 2px rgba(20, 37, 46, 0.04);
}

.login-form input:hover {
    border-color: rgba(20, 37, 46, 0.28);
}

.login-form button {
    min-height: 48px;
    margin-top: 6px;
    color: #ffffff;
    border: 0;
    border-radius: 11px;
    background: linear-gradient(110deg, var(--primary), var(--primary-shift));
    font-size: 0.86rem;
    font-weight: 760;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(23, 58, 94, 0.2);
}

.login-form button:hover {
    filter: brightness(1.08);
}

.privacy-note {
    margin: 22px 0 0;
    padding-top: 17px;
    color: var(--muted);
    border-top: 1px solid var(--line);
    font-size: 0.72rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .login-shell {
        align-items: end;
        padding: 12px;
    }

    .login-card {
        border-radius: 20px;
    }
}
