/* Auth pages — sign in (email entry) and sign up.
   Calm + corporate, left-aligned, no card. Form sits inline on the page
   background. Tokens come from variables.css; this file only adds
   auth-specific overrides scoped to .auth-page. */

:root {
    --auth-input-h: 44px;
    --auth-input-radius: 8px;
    --auth-input-border: #d6dadd;
    --auth-input-border-hover: #c3c8cc;
    --auth-input-border-focus: var(--brand-primary);
    --auth-error: #cb374a;
    --auth-error-bg: #fef0f1;
    --auth-error-border: #f3c8ce;
}

/* ---------- Page shell ---------- */
.auth-page {
    background: var(--ui-page-bg);
    color: var(--text-dark);
}

.auth-content {
    padding: 8px 0 64px;
    max-width: 760px;
}

.auth-eyebrow {
    font-size: 12px;
    font-weight: 500;
    color: var(--text-medium);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.auth-title {
    font-size: 30px;
    font-weight: 700;
    color: var(--ui-dark);
    letter-spacing: -0.015em;
    line-height: 1.15;
    margin: 0 0 8px;
    text-wrap: pretty;
}

.auth-lead {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.5;
    margin: 0 0 32px;
    max-width: 560px;
}
.auth-lead a {
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}
.auth-lead a:hover {
    text-decoration: underline;
    color: var(--brand-primary-hover);
}

/* ---------- Form ---------- */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    max-width: 560px;
    margin: 0;
}
.auth-form.cols-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.auth-page .field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.auth-page .field-label {
    font-size: 13px;
    font-weight: 500;
    color: var(--ui-dark);
    margin: 0;
}
.auth-page .field-label .req {
    color: var(--auth-error);
    margin-left: 2px;
    font-weight: 700;
}
.auth-page .field-label .optional {
    color: var(--text-medium);
    font-weight: 400;
    margin-left: 6px;
    font-size: 12px;
}

.auth-page .field-input {
    display: flex;
    align-items: center;
    height: var(--auth-input-h);
    padding: 0 14px;
    background: #fff;
    border: 1px solid var(--auth-input-border);
    border-radius: var(--auth-input-radius);
    font-family: inherit;
    font-size: 14px;
    color: var(--ui-dark);
    transition: border-color .15s, box-shadow .15s, background .15s;
    width: 100%;
    box-sizing: border-box;
}
.auth-page .field-input:hover {
    border-color: var(--auth-input-border-hover);
}
.auth-page .field-input:focus {
    outline: none;
    border-color: var(--auth-input-border-focus);
    box-shadow: 0 0 0 3px rgba(0, 126, 69, .12);
}
.auth-page .field-input::placeholder {
    color: #9aa1a7;
}

.auth-page .field-input.has-error {
    border-color: var(--auth-error);
    background: #fff;
}
.auth-page .field-input.has-error:focus {
    box-shadow: 0 0 0 3px rgba(203, 55, 74, .12);
}

.auth-page .field-input.is-disabled,
.auth-page .field-input:disabled {
    background: #f4f6f7;
    color: #6a7177;
    border-color: #e0e4e7;
    cursor: not-allowed;
}
.auth-page .field-input.is-disabled:hover,
.auth-page .field-input:disabled:hover {
    border-color: #e0e4e7;
}

/* Select chevron */
.auth-page .field-select-wrap {
    position: relative;
}
.auth-page .field-select-wrap select.field-input {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 36px;
    cursor: pointer;
}
.auth-page .field-select-wrap .chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    color: var(--text-medium);
    display: inline-flex;
    font-size: 16px;
}

.auth-page .field-help {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 2px;
}

.auth-page .field-error {
    font-size: 12px;
    color: var(--auth-error);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ---------- Submit row ---------- */
.auth-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 8px;
    flex-wrap: wrap;
}

/* ---------- Inline error banner (above the form) ---------- */
.auth-error-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: var(--auth-error-bg);
    border: 1px solid var(--auth-error-border);
    border-radius: 8px;
    margin-bottom: 24px;
    max-width: 560px;
}
.auth-error-banner .ic {
    color: var(--auth-error);
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 1;
}
.auth-error-banner .body {
    font-size: 13px;
    color: #7a1016;
    line-height: 1.45;
}
.auth-error-banner .body strong {
    color: #57000a;
    font-weight: 700;
}
.auth-error-banner .body a {
    color: #7a1016;
    font-weight: 700;
    text-decoration: underline;
}

/* ---------- Footer note (sign up T&Cs etc.) ---------- */
.auth-footnote {
    font-size: 12px;
    color: var(--text-medium);
    margin-top: 28px;
    max-width: 560px;
    line-height: 1.5;
}
.auth-footnote a {
    color: var(--brand-primary);
    font-weight: 500;
    text-decoration: none;
}
.auth-footnote a:hover {
    text-decoration: underline;
    color: var(--brand-primary-hover);
}

/* ---------- Tiny screen ---------- */
@media (max-width: 560px) {
    .auth-form.cols-2 {
        grid-template-columns: 1fr;
    }
}
