/* PursuitARK — PA-82 auth screens (login, register, awaiting-verification).
   Relies on the brand tokens declared in base.css (--navy, --gold, etc.). */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--white);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.auth-header {
    background: var(--navy);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
}

.auth-wordmark {
    display: block;
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.6rem;
    color: var(--gold);
}

.auth-tagline {
    margin-top: 0.5rem;
    font-style: italic;
    font-size: 0.85rem;
    color: var(--gold);
}

.auth-body {
    padding: 2rem;
}

.auth-heading {
    font-size: 1.2rem;
    color: var(--navy-deep);
    margin-bottom: 1.25rem;
    text-align: center;
}

.auth-field {
    margin-bottom: 1.1rem;
}

.auth-field label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--navy-deep);
    margin-bottom: 0.35rem;
}

.auth-field input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(27, 42, 74, 0.2);
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: inherit;
}

.auth-field input:focus {
    outline: none;
    border-color: var(--gold);
}

.auth-form-error {
    background: rgba(200, 60, 60, 0.08);
    border: 1px solid rgba(200, 60, 60, 0.25);
    color: #a83b3b;
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-field-error {
    color: #a83b3b;
    font-size: 0.78rem;
    margin-top: 0.3rem;
}

.auth-field-error:empty {
    display: none;
}

/* PA-199 — the consent block is left-aligned (the auth card is text-align:center
   by default), so both the label and its inline error line up with the fields. */
.auth-consent {
    text-align: left;
}

/* PA-199 — registration legal-consent checkbox. The selector is scoped as
   `.auth-field label.auth-consent-label` so it out-specifies `.auth-field label`
   (display:block) above; otherwise the label stays block and, inside the
   text-align:center auth card, the checkbox stacks above and centres. flex +
   text-align:left keeps the box and text on one line, left-aligned. */
.auth-field label.auth-consent-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--navy-deep);
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.45;
    text-align: left;
}

.auth-consent-label input[type="checkbox"] {
    width: auto;
    margin: 0.15rem 0 0;
    flex: 0 0 auto;
    accent-color: var(--gold);
}

.auth-consent-label a {
    color: var(--gold);
    text-decoration: underline;
}

.auth-info {
    background: rgba(27, 42, 74, 0.05);
    border: 1px solid rgba(27, 42, 74, 0.12);
    color: var(--navy-deep);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-success[hidden] {
    display: none;
}
.auth-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    background: rgba(46, 125, 94, 0.1);
    border: 1px solid rgba(46, 125, 94, 0.3);
    color: var(--green);
    border-radius: 6px;
    padding: 0.6rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 1.1rem;
}

.auth-banner-dismiss {
    background: none;
    border: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.auth-btn-primary {
    width: 100%;
    padding: 0.7rem;
    background: var(--navy);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-btn-primary:hover { background: var(--navy-deep); }
.auth-btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-btn-secondary {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.65rem;
    background: transparent;
    color: var(--navy-deep);
    border: 1px solid var(--gold);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease;
}

.auth-btn-secondary:hover { background: rgba(201, 168, 76, 0.1); }
.auth-btn-secondary:disabled { opacity: 0.6; cursor: not-allowed; }

.auth-link-row {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.85rem;
}

.auth-link {
    color: var(--navy);
    font-weight: 600;
    text-decoration: underline;
}

.auth-link:hover { color: var(--gold); }

.auth-email-highlight {
    font-weight: 600;
    color: var(--navy);
}

/* PA-213 — sticky navbar on unauthenticated pages, matching the home page. */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 52px;
    background: var(--navy-deep);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
}
.site-nav-brand {
    font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--gold);
    text-decoration: none;
    letter-spacing: 0.01em;
}
.site-nav-signin {
    display: inline-flex;
    color: var(--gold);
}
.site-nav-signin svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    display: block;
}
.auth-page {
    padding-top: calc(52px + 2rem);
}
