/*
 | Protera auth shell — centred card on a gradient (SystemFindings/task-15).
 |
 | Lifted VERBATIM out of `protera::layouts.auth`'s inline `<style>` block.
 |
 | Declared in ThemeServiceProvider::assets() against `web.*auth.*` at tier
 | `module`, NOT folded into web.css. Two reasons, and the second is the one
 | that matters:
 |
 |   1. `body { min-height: 100vh; display: flex; … }` plus a gradient
 |      background. web.css is emitted on EVERY public route, so merging would
 |      restyle the whole site's <body>.
 |   2. 🔑 THE CASCADE POSITION. The block sat AFTER @cmsAssets('css') in the
 |      layout, so it won every specificity tie against web.css — which is
 |      exactly what `.auth-card .form-control` and friends rely on. web.css is
 |      declared at tier `script` (1) and this at tier `module` (2), and
 |      AssetRegistry::orderByType emits 1 before 2, reproducing that order.
 |      Same tier for both would have made the winner depend on declaration
 |      order in a provider — a coin flip nobody would have noticed flipping.
 |
 | The `var(--muted)` / `--ink-2` / `--line` / `--brand` tokens come from
 | web.css, which is why this sheet must load AFTER it rather than instead of it.
 */
/* Auth-specific layout — centered card on a subtle gradient background.
   Self-contained here (not in web.css) so regular pages stay unaffected
   and tweaking the auth look doesn't require a CSS rebuild. */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #f6f7f9 0%, #eef2f6 100%);
}
.auth-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .12);
    padding: 32px;
}
.auth-card .logo {
    margin-bottom: 24px;
    justify-content: center;
}
.auth-card h1 {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -.01em;
    margin-bottom: 6px;
    text-align: center;
}
.auth-card .subtitle {
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    margin-bottom: 24px;
}
.auth-card .form-label {
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
    color: var(--ink-2);
}
.auth-card .form-control {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--line);
    font-size: 15px;
}
.auth-card .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(225, 29, 42, .12);
}
.auth-card .btn-brand {
    width: 100%;
    padding: 12px;
    font-size: 15px;
    border-radius: 10px;
    margin-top: 8px;
}
.auth-card .divider {
    height: 1px;
    background: var(--line);
    margin: 24px 0;
}
.auth-card .meta-link {
    text-align: center;
    font-size: 14px;
    color: var(--muted);
}
.auth-card .meta-link a {
    color: var(--brand);
    font-weight: 600;
}
.auth-card .forgot-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
    font-size: 13px;
}
.auth-card .forgot-row a {
    color: var(--brand);
    font-weight: 600;
}
.auth-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 14px;
    margin-bottom: 18px;
}
.auth-alert.success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.auth-alert.error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
.auth-footer {
    text-align: center;
    padding: 20px;
    color: var(--muted);
    font-size: 13px;
}
.auth-footer a {
    color: var(--muted);
    margin: 0 10px;
}
.auth-footer a:hover {
    color: var(--brand);
}

/*
 | SystemFindings/task-18 — the four `style="…"` attributes that were left on the
 | register override when task-15 lifted this sheet out of the auth layout.
 |
 | They belong here rather than in web.css for the same reason as everything
 | above: this file is the only one scoped to `web.*auth.*`, and `.form-text` /
 | `.form-check-label` are Bootstrap classes that appear on public pages too.
 | Scoping under `.auth-card` keeps the storefront's own forms untouched.
 */
.auth-card .form-text {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}
.auth-card .form-check-label {
    font-size: 13px;
}
.auth-card .terms-link {
    color: var(--brand);
    font-weight: 600;
}
