/* =============================================================
   auth.css — Login (page 01) and Register (page 02)

   The two public pages, and the only ones with no shell: there is no session
   yet, so there is nothing to navigate. One centred 392px column on the page
   ground, the wordmark above the card, the theme switch floating outside it.

   Almost everything here now comes from components.css — the fields, the
   button, the banners. What is left is the column, the card and the wordmark.
   ============================================================= */

body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--fg-2);
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.auth-container {
    width: 100%;
    max-width: 392px;
    padding: var(--sp-7);
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

/* The wordmark is outside the card and unboxed: before you are inside the
   product, its name is the only thing on screen that is not a control. */
.auth-wordmark {
    font-family: var(--font-sans);
    font-size: 19px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--fg);
    text-align: center;
}
.auth-wordmark-dot { color: var(--accent); }

.auth-card {
    background: var(--panel);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-card);
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

/* Sans (v2 §2): "Login" and "Register" are named in the rule's list of things
   that are explicitly NOT serif — they are the application, not an exercise. */
.auth-title {
    font-family: var(--font-sans);
    font-size: 26px;
    font-weight: 700;
    color: var(--fg);
    margin: 0;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: var(--sp-6);
}

/* The one full-width control on the page — a 42px target that cannot be
   mistaken for anything else, because there is nothing else. */
/* The "stay logged in" line sits between the last field and the button, where
   it reads as part of the decision to log in rather than as a setting. Small
   and quiet: it is a choice, not a prompt (M5 task 24). */
.stay-logged-in {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    font-size: 12.5px;
    color: var(--fg-2);
    cursor: pointer;
    user-select: none;
}
.stay-logged-in input { accent-color: var(--accent); cursor: pointer; }

.auth-button {
    width: 100%;
    height: 42px;
}

.auth-switch {
    margin: 0;
    font-size: 13px;
    color: var(--fg-dim);
    text-align: center;
}
.auth-switch a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}
.auth-switch a:hover { text-decoration: underline; }

/* The floating theme switch (see .theme-switch-floating in theme.css). */
.theme-switch-floating { position: fixed; top: var(--sp-6); right: var(--sp-6); }
