/* ===========================================================================
   Auth pages (sign in, sign up, password reset, confirmations).

   These used to be a dark hero layout with its own canvas, indigo glows and
   ~50 hardcoded colour literals PER PAGE, repeated across nine templates.
   The literals are gone: everything here reads the same --bb-* tokens as the
   dashboard, so the sign-in screen and the product behind it are one design
   rather than two that happen to share a logo.

   Loaded by auth_layout.html / login-layout.html AFTER app.css, so the
   tokens are already defined. Page-level <style> blocks should only carry
   what is genuinely unique to that page (viewport sizing, media queries) --
   anything shared belongs here.

   The split is deliberate: the FORM side is light, like the console; the
   HERO side is the bar's warm charcoal. That reuses the one dark surface
   the product already has instead of inventing a second one.
   =========================================================================== */

/* ── Form side ── */
.auth-left {
    background: var(--bb-canvas);
    position: relative;
    overflow: hidden;
}

.auth-card {
    position: relative;
    z-index: 1;
    background: var(--bb-surface) !important;
    border: 1px solid var(--bb-border) !important;
    border-radius: var(--bb-radius) !important;
    padding: 32px 28px !important;
}

.auth-title {
    color: var(--bb-text);
}
.auth-subtitle {
    color: var(--bb-text-muted);
}

/* ── Input fields ── */
.auth-field .v-field {
    border-radius: var(--bb-radius-sm) !important;
    background: var(--bb-surface-hover) !important;
}
.auth-field .v-field--focused {
    background: var(--bb-surface) !important;
}
.auth-field .v-field__outline {
    --v-field-border-opacity: 1;
    color: var(--bb-border-strong);
}
.auth-field .v-field--focused .v-field__outline {
    color: var(--bb-accent);
}
.auth-field .v-label {
    color: var(--bb-text-muted);
}

/* Chrome paints autofilled inputs pale blue, which is the one colour that
   survives every other rule here. The 1000px inset shadow is the documented
   way to repaint it. */
.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px var(--bb-surface-hover) inset !important;
    -webkit-text-fill-color: var(--bb-text) !important;
    caret-color: var(--bb-text);
    transition: background-color 5000s ease-in-out 0s;
}

/* ── Primary button ── */
/* Flat accent: the indigo-to-violet gradient and its coloured glow were the
   loudest thing on the page and belonged to the old palette. */
.auth-btn {
    background: var(--bb-accent) !important;
    color: var(--bb-on-accent) !important;
    border-radius: var(--bb-radius-sm) !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em !important;
    box-shadow: none !important;
    transition: background 0.18s ease !important;
}
.auth-btn:hover {
    background: var(--bb-accent-hover) !important;
}

/* ── Social buttons ── */
.social-btn {
    border-radius: var(--bb-radius-sm) !important;
    border-color: var(--bb-border-strong) !important;
    background: var(--bb-surface) !important;
    color: var(--bb-text-secondary) !important;
    transition: background 0.18s ease, border-color 0.18s ease !important;
}
.social-btn:hover {
    background: var(--bb-surface-hover) !important;
    border-color: var(--bb-text-faint) !important;
}
.social-btn-label {
    color: var(--bb-text-secondary);
    font-size: 14px;
    font-weight: 500;
}

/* ── "or" divider ── */
.or-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--bb-text-faint);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--bb-border);
}

/* ── Secondary text and links ── */
.auth-muted {
    font-size: 13px;
    color: var(--bb-text-muted);
}
.auth-fine {
    font-size: 11px;
    color: var(--bb-text-faint);
}
.auth-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--bb-accent-soft);
    text-decoration: none;
}
.auth-link:hover {
    text-decoration: underline;
}
.auth-link-quiet {
    font-size: 13px;
    color: var(--bb-text-muted);
    text-decoration: none;
}
.auth-link-quiet:hover {
    color: var(--bb-text-secondary);
}
.auth-field-toggle {
    color: var(--bb-text-muted);
    cursor: pointer;
}

/* ── Hero side ──
   The bar's charcoal, so the dark surface in this product has exactly one
   value. Text uses the bar's own text tokens for the same reason. */
.auth-hero {
    background: var(--bb-bar);
    background-size: cover;
    background-position: center;
    position: relative;
}
.auth-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(35, 33, 29, 0.94) 0%,
        rgba(35, 33, 29, 0.86) 100%);
}
.auth-hero-title {
    color: var(--bb-bar-text);
}
.auth-hero-text {
    color: var(--bb-bar-text-muted);
}

.feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 10px 0;
}
/* No tinted tile, matching the console: the icon marks the point, the text
   makes it. */
.feature-icon {
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--bb-bar-text-muted);
    font-size: 17px;
}
.feature-title {
    color: var(--bb-bar-text);
    font-size: 14px;
    font-weight: 600;
}
.feature-desc {
    color: var(--bb-bar-text-muted);
    font-size: 13px;
    margin-top: 2px;
}

.badge-row {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 13px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--bb-bar-text-muted);
}
