/* Sign-in and registration. Kept out of site.css so the marketing pages and these
   forms cannot drift into each other. */

:root {
    --auth-brand: #20a461;
    --auth-ink: #2a363f;
    --auth-muted: #727272;
    --auth-line: #e4e4e4;
    --auth-alert: #be123c;
}

.auth-body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
    color: var(--auth-ink);
    background: #f3f3f3;
    -webkit-font-smoothing: antialiased;
}

.auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 40px;
    padding: 32px;
    max-width: 1180px;
    margin: 0 auto;
}

.auth__card {
    width: 100%;
    max-width: 460px;
    margin-left: auto;
    padding: 30px 32px 26px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(42, 54, 63, 0.10);
}

.auth__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    color: var(--auth-ink);
    font-weight: 800;
    text-decoration: none;
}

/* Wordmark rather than a lettered tile; height-constrained to keep its aspect. */
.auth__logo {
    height: 34px;
    width: auto;
    display: block;
}
.auth__title { margin: 0 0 6px; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.01em; }
.auth__lead { margin: 0 0 20px; color: var(--auth-muted); font-size: 0.9rem; }

.auth__alert {
    margin-bottom: 16px;
    padding: 10px 13px;
    border-radius: 10px;
    border: 1px solid #fbcfe0;
    background: #fff1f5;
    color: var(--auth-alert);
    font-size: 0.86rem;
}

.auth__form { display: grid; gap: 14px; }
.auth__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.auth__field { display: grid; gap: 5px; }
.auth__field > span:first-child { font-size: 0.82rem; font-weight: 700; }

.auth__field input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    font: inherit;
    font-size: 0.9rem;
    background: #fbfdff;
    transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.auth__field input:focus {
    outline: none;
    border-color: var(--auth-brand);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-brand) 18%, transparent);
}

.auth__hint { font-size: 0.76rem; color: var(--auth-muted); }
.auth__error { font-size: 0.78rem; color: var(--auth-alert); }
.auth__error:empty { display: none; }

/* password field with its reveal button */
.auth__reveal { position: relative; display: block; }
.auth__reveal input { padding-right: 62px; }

.auth__reveal-btn {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: var(--auth-brand);
    font: inherit;
    font-size: 0.79rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 7px;
    cursor: pointer;
}

.auth__reveal-btn:hover { background: color-mix(in srgb, var(--auth-brand) 10%, transparent); }

/* captcha */
.captcha { display: flex; align-items: center; gap: 8px; }
.captcha__image { line-height: 0; border-radius: 10px; overflow: hidden; }
.captcha__image svg { display: block; }

.captcha__refresh {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border: 1px solid var(--auth-line);
    border-radius: 9px;
    background: #fff;
    color: var(--auth-muted);
    font-size: 1rem;
    cursor: pointer;
    transition: color 0.16s ease, border-color 0.16s ease;
}

.captcha__refresh:hover { color: var(--auth-brand); border-color: var(--auth-brand); }
.captcha__refresh:disabled { opacity: 0.5; cursor: default; }

.captcha__input { text-transform: uppercase; letter-spacing: 0.18em; font-weight: 700; }

.auth__submit {
    margin-top: 4px;
    padding: 11px 16px;
    border: 0;
    border-radius: 10px;
    background: var(--auth-brand);
    color: #fff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.16s ease;
}

.auth__submit:hover { filter: brightness(1.08); }

.auth__foot { margin: 18px 0 0; font-size: 0.86rem; color: var(--auth-muted); }
.auth__foot a { color: var(--auth-brand); font-weight: 700; }

/* the pitch beside the form */
.auth__aside { max-width: 420px; color: var(--auth-ink); }
.auth__aside h2 { font-size: 1.5rem; line-height: 1.3; margin: 0 0 16px; letter-spacing: -0.01em; }
.auth__aside ul { margin: 0; padding-left: 18px; color: var(--auth-muted); line-height: 1.9; font-size: 0.92rem; }

/* The pitch is the first thing to go; the form is the point of the page. */
@media (max-width: 900px) {
    .auth { grid-template-columns: minmax(0, 1fr); padding: 20px; }
    .auth__card { margin: 0 auto; }
    .auth__aside { display: none; }
    .auth__row { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- continue with Google ---------- */

.auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    color: var(--auth-muted);
    font-size: 0.78rem;
}

.auth__divider::before,
.auth__divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--auth-line);
}

.auth__google-form { margin: 0; }

/* Google's brand guidance: their mark on a neutral surface, not recoloured to ours. */
.auth__google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid var(--auth-line);
    border-radius: 10px;
    background: #fff;
    color: #3c4043;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.auth__google:hover {
    background: #f7f8f8;
    border-color: #d2d5d9;
    box-shadow: 0 2px 6px rgba(42, 54, 63, 0.08);
}

.auth__google:active { background: #eef0f1; }

.auth__google:focus-visible {
    outline: 2px solid var(--auth-brand);
    outline-offset: 2px;
}

.auth__google svg { flex: 0 0 auto; }
