/* Service Choices design tokens, taken from Sean's homepage design (Bauhaus direction). */
:root {
    --ink: #151413;
    --cream: #EDE4D3;
    --cream-deep: #E2D6BF;
    --orange: #E5462E;        /* tomato (brand) */
    --orange-bright: #E5462E; /* same tomato; kept as a name for ink backgrounds */
    --white: #FFFFFF;
    --rule: 4px solid var(--ink);
    --rule-thin: 2px solid var(--ink);
    --font: Jost, "Futura", "Century Gothic", Arial, sans-serif;
    --gutter: 32px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body { margin: 0; }

body {
    background: var(--cream);
    color: var(--ink);
    font-family: var(--font);
    font-size: 19px;
    line-height: 1.5;
}

a { color: var(--ink); }
a:hover { color: var(--orange); }

/* ---------- Shell ---------- */

.shell { min-height: 100vh; display: flex; flex-direction: column; }

.shell-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px var(--gutter);
    border-bottom: var(--rule);
}

.shell-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }

.brand-mark {
    width: 28px;
    height: 28px;
    background: var(--orange);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.brand-mark::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); }

.brand-name { font-weight: 800; font-size: 20px; letter-spacing: 0.14em; text-transform: uppercase; }
.brand-name-small { font-size: 15px; }

.shell-tag { font-weight: 700; font-size: 15px; letter-spacing: 0.2em; text-transform: uppercase; }

.shell-body { flex: 1 1 auto; display: flex; flex-direction: column; }

.shell-footer {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 20px var(--gutter);
    border-top: var(--rule);
    font-size: 15px;
    letter-spacing: 0.06em;
}

/* ---------- Type ---------- */

.eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-weight: 700;
    font-size: 15px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.eyebrow-bar { display: inline-block; width: 48px; height: 8px; background: var(--orange); }

.display {
    margin: 0;
    font-weight: 700;
    font-size: clamp(46px, 7vw, 88px);
    line-height: 1;
    letter-spacing: -0.03em;
}
.display:focus { outline: none; }
.accent { color: var(--orange); }

.lede { margin: 0; font-size: 22px; line-height: 1.4; max-width: 560px; }

.fine-print { margin: 0; padding-top: 14px; border-top: var(--rule-thin); font-size: 16px; max-width: 600px; }

.notice { margin: 0; padding: 14px 18px; background: var(--ink); color: var(--cream); font-size: 17px; max-width: 600px; }

/* ---------- Forms and buttons ---------- */

.field-form { display: flex; flex-direction: column; gap: 8px; max-width: 600px; }
.field-label { font-weight: 700; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; }
.field-row { display: flex; flex-wrap: wrap; }
.field-input {
    flex: 1 1 260px;
    min-width: 0;
    height: 60px;
    padding: 0 18px;
    border: var(--rule);
    border-radius: 0;
    background: var(--white);
    font-family: inherit;
    font-size: 19px;
    color: var(--ink);
}
.field-hint { font-size: 15px; }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 60px;
    padding: 0 26px;
    border: var(--rule);
    border-radius: 0;
    font-family: inherit;
    font-weight: 700;
    font-size: 17px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
}
.button-ink { background: var(--ink); color: var(--white); }
.button-orange { background: var(--orange); border-color: var(--orange); color: var(--white); }
.button-outline { background: transparent; color: var(--ink); }
.button:disabled { opacity: 0.6; cursor: default; }

/* A button that is a link must not pick up the plain-link hover colour (orange text on
   an orange button). Hover is shown by the background instead. */
.button-ink:hover, .button-orange:hover { color: var(--white); }
.button-outline:hover { color: var(--ink); background: var(--cream-deep); }
.button-orange:hover:not(:disabled) { background: #A2380B; border-color: #A2380B; }
.button-ink:hover:not(:disabled) { background: #3A3836; }

.field-input:focus-visible, .button:focus-visible, a:focus-visible {
    outline: 4px solid var(--orange);
    outline-offset: 2px;
}

/* ---------- Pages ---------- */

.page { padding: 72px var(--gutter); display: flex; flex-direction: column; gap: 26px; }
.page-narrow { max-width: 760px; }

.signin { flex: 1 1 auto; display: flex; align-items: stretch; }

.signin-copy {
    flex: 1 1 0;
    min-width: 0;
    padding: 72px 64px 72px clamp(32px, 7vw, 100px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 26px;
}

.signin-art {
    flex: 0 0 36%;
    max-width: 520px;
    background: var(--ink);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.art-corner { position: absolute; left: 0; top: 0; width: 120px; height: 120px; border-bottom-right-radius: 120px; background: var(--cream); }
.art-block { position: absolute; right: 0; bottom: 0; width: 200px; height: 200px; background: var(--orange); }
.art-key { position: relative; width: 62%; max-width: 320px; }

/* ---------- Blazor error bar ---------- */

#blazor-error-ui {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    padding: 14px var(--gutter);
    background: var(--orange);
    color: var(--white);
}
#blazor-error-ui a { color: var(--white); }
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: var(--gutter); }

/* ---------- Phone ---------- */

@media (max-width: 760px) {
    :root { --gutter: 20px; }
    body { font-size: 17px; }
    .brand-mark { width: 24px; height: 24px; }
    .brand-mark::after { width: 12px; height: 12px; }
    .brand-name { font-size: 16px; }
    .shell-tag { display: none; }
    .eyebrow { font-size: 13px; gap: 12px; }
    .eyebrow-bar { width: 36px; }
    .lede { font-size: 18px; }
    .page { padding: 32px var(--gutter); gap: 20px; }

    .signin { flex-direction: column-reverse; justify-content: flex-end; }
    .signin-copy { flex: 0 0 auto; padding: 32px var(--gutter); gap: 20px; justify-content: flex-start; }
    .signin-art { flex: 0 0 150px; max-width: none; }
    .art-corner { width: 56px; height: 56px; border-bottom-right-radius: 56px; }
    .art-block { width: 72px; height: 72px; }
    .art-key { width: 160px; }

    .field-row { flex-direction: column; gap: 8px; }
    .field-input, .button { min-height: 56px; height: 56px; flex: 0 0 auto; }
}
