/**
 * ==========================================================================
 * QueryKey Cases – auth.css
 *
 * @fileOverview
 * Page styles for authentication surfaces (sign in, register, password reset).
 * This file contains the hero, card, form, and footer link treatments for
 * the login card and related components.
 *
 * @author
 * QueryKey Cases Web Team
 *
 * @maintainer
 * Cases Engineering Lead
 *
 * @usage
 * Linked by querykey-web/public/auth/*.html
 *
 * @dependencies
 * variables.css, base.css, fonts.css, components/*
 *
 * @notes
 * - Vendor-prefixed properties are scoped and documented where required for
 *   cross-browser rendering (e.g., gradient text fill, backdrop-filter).
 *
 * @license
 * QueryKey™ is a trademark of Farrel Wilson. All rights reserved.
 * @timestamp
 * 2026-03-16 00:00:00 UTC
 * ==========================================================================
 */
 
/* stylelint-disable order/order -- Page-level .p-* overrides intentionally sit alongside base selectors to preserve cascade clarity. */

/* Authentication Pages Styles */

:root {
    /* Auth aliases point to canonical tokens to reduce color drift across surfaces. */
    --primary-blue: var(--qk-accent-blue);
    --accent-orange: var(--qk-accent-orange);
    --success-green: var(--success);
    --error-red: var(--danger);
    --warning-yellow: var(--warning);
    --light-gray: var(--light-gray);
    --border-color: var(--surface-border);
    --text-muted: var(--muted-text);
    --white: var(--white);
    --auth-navy: var(--qk-standard-band-dark);
    --auth-navy-dark: var(--qk-standard-band-mid);
    /* Match the home Developer Integration visual family: deep blue band + grid pattern. */
    --auth-hero-gradient: linear-gradient(145deg, var(--qk-standard-band-dark) 0%, var(--qk-standard-band-mid) 100%);
    --auth-hero-pattern: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    --auth-card-bg: rgb(12 23 46 / 88%);
    --auth-card-border: rgb(255 255 255 / 10%);
    --auth-card-shadow: 0 30px 60px rgb(12 23 46 / 40%);
    --auth-plan-highlight: var(--qk-premium-accent);
    --auth-plan-highlight-dark: #d66c00;
    --auth-plan-secondary: var(--qk-premium-accent-blue);
    --auth-glass-border: rgb(255 255 255 / 14%);
    --auth-muted-text: #a6b4cc;
    --auth-light-text: #e4ebff;
}

.p-auth {
    background-image: var(--auth-hero-gradient), var(--auth-hero-pattern);
    background-size: cover;
    background-attachment: fixed;
    color: var(--auth-light-text);
    font-family: QueryKeySans, sans-serif;
    min-height: 100vh;
    position: relative;
}

body.light-mode.p-auth {
    background-image:
        linear-gradient(145deg, var(--qk-standard-light-band) 0%, var(--qk-standard-light-surface) 100%),
        var(--auth-hero-pattern);
    color: #1f2a44;
}

body.light-mode.p-auth::before {
    background:
        radial-gradient(circle at 14% 16%, rgb(247 127 0 / 10%) 0%, transparent 28%),
        radial-gradient(circle at 86% 14%, rgb(62 99 238 / 12%) 0%, transparent 30%),
        linear-gradient(180deg, rgb(255 255 255 / 0%) 0%, rgb(29 56 101 / 8%) 100%);
}

.p-auth::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 16% 18%, rgb(247 127 0 / 14%) 0%, transparent 26%),
        radial-gradient(circle at 84% 14%, rgb(62 99 238 / 18%) 0%, transparent 30%),
        linear-gradient(180deg, rgb(7 14 29 / 0%) 0%, rgb(7 14 29 / 24%) 100%);
    z-index: 0;
}

/* Main Auth Layout */
.auth-main {
    min-height: calc(100vh - 140px);
    position: relative;
    padding: clamp(2.7rem, 5.4vw, 4.5rem) 0 clamp(3rem, 6vw, 4.8rem);
    overflow: hidden;
}

/* Paint auth depth on the entire main surface to avoid hero-only band seams. */
.auth-main::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(160deg, rgb(15 29 56 / 92%) 0%, rgb(15 29 56 / 35%) 55%, rgb(62 99 238 / 15%) 100%);
}

body.light-mode.p-auth .auth-main::before {
    background: linear-gradient(160deg, rgb(241 247 255 / 94%) 0%, rgb(241 247 255 / 78%) 56%, rgb(88 124 201 / 18%) 100%);
}

.auth-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

.auth-hero {
    position: relative;
    z-index: 1;
}

.auth-hero::before {
    content: none;
}

.auth-hero-container {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr);
    gap: clamp(2rem, 4vw, 3.5rem);
    max-width: 1200px;
    margin: 0 auto;
    padding: clamp(2.5rem, 4vw, 3.5rem);
    color: var(--auth-light-text);
}

/* Solo container centers the login card when the marketing hero copy is suppressed. */
.auth-hero-container--solo {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    max-width: 760px;
}

.auth-hero-copy {
    display: flex;
    flex-direction: column;
    gap: clamp(1.5rem, 3vw, 2.5rem);

    /* Allow grid child to shrink without forcing overflow */
    min-width: 0;
}

/* Complementary actions below the hero copy give returning users guidance */
.auth-secondary-actions {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.auth-cta {
    color: #fefefe;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.auth-cta:hover,
.auth-cta:focus {
    opacity: 0.8;
    text-decoration: underline;
}

.auth-hero-copy h1 {
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.15;
    font-weight: 700;
    color: var(--auth-plan-highlight);
    margin: 0;
}

.hero-benefits {
    background: rgb(255 255 255 / 6%);
    border: 1px solid var(--auth-glass-border);
    border-radius: 16px;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 50px rgb(9 17 35 / 25%);
}

.hero-benefits h3 {
    color: var(--auth-plan-highlight);
    font-size: 1rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Ensure the register page hero heading picks the accent even if other styles override */
.p-auth .hero-benefits h3 {
    color: var(--auth-plan-highlight);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-entry-card {
    position: relative;
    width: min(100%, 700px);
    padding: clamp(2.2rem, 4vw, 2.85rem);
    border-radius: 26px;
    border: 1px solid rgb(255 179 71 / 34%);
    background:
        linear-gradient(180deg, rgb(255 255 255 / 7%), rgb(255 255 255 / 3%)),
        linear-gradient(155deg, rgb(14 29 55 / 97%) 0%, rgb(10 22 44 / 95%) 58%, rgb(19 42 78 / 90%) 100%);
    box-shadow:
        0 0 0 1px rgb(255 179 71 / 10%),
        0 34px 72px rgb(7 15 32 / 52%),
        inset 0 1px 0 rgb(255 255 255 / 8%);
    overflow: hidden;
}

.auth-entry-card :is(a, button, input):focus-visible {
    outline: 2px solid rgb(247 127 0 / 80%);
    outline-offset: 2px;
}

.auth-entry-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, rgb(247 127 0 / 0%), rgb(247 127 0 / 72%) 48%, rgb(247 127 0 / 0%));
    pointer-events: none;
}

.auth-entry-card::after {
    content: "";
    position: absolute;
    inset: auto -10% -32% auto;
    width: 260px;
    height: 260px;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgb(62 99 238 / 20%) 0%, rgb(62 99 238 / 8%) 38%, transparent 72%);
    pointer-events: none;
    filter: blur(6px);
}

.auth-entry-topline {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.65rem;
    margin: 0 0 1.2rem;
}

.auth-entry-topline-pill {
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgb(255 255 255 / 12%);
    background: rgb(255 255 255 / 6%);
    color: rgb(228 235 255 / 82%);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.auth-entry-segment {
    display: grid;
    grid-auto-flow: column;
    width: fit-content;
    gap: 8px;
    padding: 5px;
    margin: 0 auto 1.65rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 5%);
    border: 1px solid rgb(255 255 255 / 12%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.auth-entry-segment-button {
    border: none;
    border-radius: 999px;
    padding: 10px 22px;
    background: transparent;
    color: rgb(235 241 255 / 72%);
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.auth-entry-segment-button.is-active,
.auth-entry-segment-button:hover,
.auth-entry-segment-button:focus-visible {
    background: linear-gradient(135deg, #ffb347, #ff8c42);
    color: #1a1831;
    box-shadow: 0 10px 18px rgb(247 127 0 / 24%);
}

.auth-entry-header {
    margin-bottom: 1.35rem;
}

.auth-entry-card[data-auth-page-state="forgot"] > .auth-entry-header {
    display: none;
}

.auth-entry-eyebrow {
    margin: 0 0 0.55rem;
    color: rgb(255 179 71 / 88%);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.auth-page-panel {
    width: min(100%, 540px);
    margin: 0 auto;
}

.auth-entry-trust-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 0 auto 1.55rem;
}

.auth-entry-trust-item {
    position: relative;
    display: grid;
    gap: 0.28rem;
    padding: 1rem 1rem 1.05rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgb(255 255 255 / 6%), rgb(255 255 255 / 3%));
    border: 1px solid rgb(255 255 255 / 11%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.auth-entry-trust-item strong {
    color: rgb(249 208 150 / 98%);
    font-size: 0.92rem;
    letter-spacing: 0.01em;
}

.auth-entry-trust-item span {
    color: rgb(214 224 241 / 78%);
    font-size: 0.88rem;
    line-height: 1.5;
}

.auth-page-panel-login .auth-form,
.auth-page-panel-forgot .auth-form {
    margin: 0;
}

/* Remember row + forgot: one band, forgot as quiet outline pill (not a second primary CTA) */
.auth-form .auth-login-options-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem 1rem;
}

.auth-form .auth-login-options-row .checkbox-label {
    flex: 1 1 12rem;
    margin: 0;
}

.auth-form .auth-btn-forgot-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    margin-inline-start: auto;
    padding: 0.32rem 0.75rem;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.25;
    border-radius: 999px;
    background: rgb(62 99 238 / 10%);
    color: rgb(205 218 250 / 96%);
    border: 1px solid rgb(115 150 235 / 42%);
    box-shadow: none;
}

.auth-form .auth-btn-forgot-password:hover:not(:disabled) {
    background: rgb(62 99 238 / 18%);
    border-color: rgb(145 175 255 / 55%);
    color: #fff;
}

.auth-form .auth-btn-forgot-password:focus-visible {
    outline: 2px solid var(--qk-accent-blue);
    outline-offset: 2px;
}

body.light-mode.p-auth .auth-form .auth-btn-forgot-password {
    background: rgb(62 99 238 / 8%);
    color: #2a4580;
    border-color: rgb(62 99 238 / 32%);
}

body.light-mode.p-auth .auth-form .auth-btn-forgot-password:hover:not(:disabled) {
    background: rgb(62 99 238 / 14%);
    color: #1a3566;
    border-color: rgb(62 99 238 / 45%);
}

.auth-inline-actions-page {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.45rem;
}

.auth-link-button {
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

.auth-page-helper-card {
    display: grid;
    gap: 14px;
    padding: 1.3rem 1.2rem;
    border-radius: 18px;
    background: rgb(255 255 255 / 4%);
    border: 1px solid rgb(255 255 255 / 10%);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%);
}

.auth-page-helper-card h2 {
    margin: 0;
    color: rgb(244 248 255 / 97%);
    font-size: clamp(1.55rem, 1.34rem + 0.4vw, 1.9rem);
    line-height: 1.08;
    text-align: center;
}

.auth-page-helper-copy {
    margin: 0;
    color: rgb(221 231 247 / 82%);
    font-size: 1rem;
    line-height: 1.55;
    text-align: center;
}

.auth-page-back-link {
    justify-self: center;
    color: rgb(196 210 236 / 84%);
}

.auth-page-back-link:hover,
.auth-page-back-link:focus-visible {
    color: #fff;
}

.auth-entry-footer {
    margin-top: 1.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgb(255 255 255 / 10%);
}

.auth-entry-support-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem 1.4rem;
    margin-top: 0.9rem;
}

.auth-entry-support-links a {
    color: rgb(196 210 236 / 88%);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
}

.auth-entry-support-links a:hover,
.auth-entry-support-links a:focus-visible {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.p-auth .auth-entry-card .auth-footer,
.p-auth .auth-entry-card .auth-entry-footer {
    color: rgb(221 231 247 / 84%);
    text-align: center;
}

.p-auth .auth-entry-card .form-group label {
    color: rgb(244 248 255 / 94%);
    font-size: 0.95rem;
    letter-spacing: 0.01em;
}

.p-auth .auth-entry-card .form-group input[type="email"],
.p-auth .auth-entry-card .form-group input[type="password"],
.p-auth .auth-entry-card .form-group input[type="text"] {
    min-height: 54px;
    border-radius: 14px;
    border: 1px solid rgb(255 255 255 / 12%);
    background: linear-gradient(180deg, rgb(21 39 70 / 72%), rgb(14 28 52 / 78%));
    color: #fff;
    box-shadow: inset 0 1px 0 rgb(255 255 255 / 4%);
    padding-inline: 1rem;
}

.p-auth .auth-entry-card .form-group input[type="email"]::placeholder,
.p-auth .auth-entry-card .form-group input[type="password"]::placeholder,
.p-auth .auth-entry-card .form-group input[type="text"]::placeholder {
    color: rgb(214 224 241 / 48%);
}

.p-auth .auth-entry-card .form-group input:focus {
    border-color: rgb(247 127 0 / 92%);
    box-shadow: 0 0 0 3px rgb(247 127 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 6%);
}

.p-auth .auth-entry-card .btn.btn-primary,
.p-auth .auth-entry-card .btn[type="submit"] {
    min-height: 54px;
    border-radius: 999px;
    box-shadow: 0 16px 28px rgb(247 127 0 / 24%);
    letter-spacing: 0.02em;
    font-weight: 800;
}

.p-auth .auth-entry-card .auth-link-secondary,
.p-auth .auth-entry-card .auth-link-cta {
    color: rgb(255 205 142 / 92%);
    font-weight: 700;
}

.p-auth .auth-entry-card .auth-link-secondary:hover,
.p-auth .auth-entry-card .auth-link-secondary:focus-visible,
.p-auth .auth-entry-card .auth-link-cta:hover,
.p-auth .auth-entry-card .auth-link-cta:focus-visible {
    color: #fff;
}

.auth-header h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

/* Enhanced login title styling for better visual hierarchy */
.auth-header .auth-title {
    letter-spacing: 0.2px;
    line-height: 1.15;
    display: inline-block; /* Improves background-clip:text rendering reliability in Safari */
}

/* Accent gradient title on dark card while preserving accessible fallback */
.p-auth .auth-hero .auth-card .auth-title,
.p-auth .auth-hero .auth-card .auth-header h1 {
    color: var(--auth-plan-highlight); /* fallback for environments without background-clip */
    background-image: linear-gradient(180deg, var(--auth-plan-highlight), #ffb366);
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-background-clip: text;
    background-clip: text;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 16px rgb(247 127 0 / 15%);
    margin-bottom: 0.35rem;
}

.p-auth .auth-entry-card .auth-subtitle {
    max-width: 520px;
    margin-inline: auto;
}

.p-auth .auth-entry-card .auth-form {
    margin: 0.5rem 0 0;
}

.p-auth .auth-entry-card .form-group {
    margin-bottom: 1.15rem;
}

.p-auth .auth-entry-card .checkbox-group.remember-group {
    margin-top: 0.4rem;
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border-radius: 16px;
    border: 1px solid rgb(255 255 255 / 8%);
    background: rgb(255 255 255 / 4%);
}

.p-auth .auth-entry-card .auth-inline-actions {
    margin-top: 0.15rem;
}

.p-auth .auth-entry-card .field-error {
    margin-top: 0.45rem;
    color: rgb(255 181 181 / 92%);
    font-size: 0.84rem;
}

.p-auth .auth-entry-card .form-error:not(.hidden),
.p-auth .auth-entry-card .form-success:not(.hidden) {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid rgb(255 255 255 / 10%);
    background: rgb(255 255 255 / 5%);
    text-align: center;
}

body.p-auth .hx-header--auth-surface::before {
    background:
        linear-gradient(135deg, rgb(14 22 40 / 96%) 0%, rgb(27 40 73 / 95%) 58%, rgb(24 45 82 / 94%) 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 18px 38px rgb(3 9 21 / 34%);
}

body.p-auth .hx-header--auth-surface::after {
    background:
        linear-gradient(90deg, rgb(247 127 0 / 0%) 0%, rgb(247 127 0 / 10%) 20%, rgb(62 99 238 / 12%) 78%, rgb(62 99 238 / 0%) 100%);
    border-radius: 0 0 28px 28px;
}

body.p-auth .hx-header--auth-surface .hx-header-shell {
    padding: 18px 0 16px;
}

body.p-auth .hx-header--auth-surface .hx-logo {
    gap: 0.5rem;
}

body.p-auth .hx-header--auth-surface .hx-logo-text {
    display: none;
}

body.p-auth .hx-header--auth-surface .hx-nav--app ul {
    display: flex;
    align-items: center;
    gap: 1.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

body.p-auth .hx-header--auth-surface .hx-nav--app li::marker {
    content: "";
}

body.p-auth .hx-header--auth-surface .hx-nav a {
    padding: 0;
    border-radius: 0;
    color: var(--qk-shell-footer-link, rgb(222 229 244 / 84%));
    font-weight: 600;
}

body.p-auth .hx-header--auth-surface .hx-nav a:is(:hover, :focus, .active, [aria-current="page"]) {
    background: transparent;
    color: var(--qk-shell-footer-link-hover, rgb(255 215 173 / 96%));
}

body.p-auth .hx-header--auth-surface .hx-header-account--app {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.68rem 1.1rem;
    border-radius: 999px;
    border: 1px solid rgb(255 184 107 / 28%);
    background: rgb(255 255 255 / 6%);
    color: var(--qk-shell-footer-link-hover, rgb(255 215 173 / 96%));
    font-weight: 700;
    text-decoration: none;
    box-shadow: none;
}

body.p-auth .hx-header--auth-surface .hx-header-account--app:hover,
body.p-auth .hx-header--auth-surface .hx-header-account--app:focus-visible {
    background: rgb(255 255 255 / 10%);
    border-color: rgb(255 184 107 / 42%);
    color: #fff1da;
    transform: none;
}

.p-auth .auth-entry-card .form-error:not(.hidden),
.p-auth .auth-entry-card .form-success:not(.hidden) {
    display: block;
}

.p-auth .auth-entry-card .btn-loading.hidden {
    display: none;
}

.p-auth .auth-hero .auth-card .auth-footer a[href="/auth/register/"] {
    color: var(--auth-plan-highlight);
    font-weight: 700;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.p-auth .auth-hero .auth-card .auth-footer a[href="/auth/register/"]:hover,
.p-auth .auth-hero .auth-card .auth-footer a[href="/auth/register/"]:focus {
    text-decoration: underline;
}

.p-auth .auth-hero .auth-card .auth-footer .auth-footer-secondary a,
.p-auth .auth-hero .auth-card .auth-footer a[href="/auth/forgot/"],
.p-auth .auth-hero .auth-card .auth-footer a[href="/forgot-password"] {
    color: var(--auth-muted-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.p-auth .auth-hero .auth-card .auth-footer .auth-footer-secondary a:hover,
.p-auth .auth-hero .auth-card .auth-footer .auth-footer-secondary a:focus,
.p-auth .auth-hero .auth-card .auth-footer a[href="/auth/forgot/"]:hover,
.p-auth .auth-hero .auth-card .auth-footer a[href="/auth/forgot/"]:focus,
.p-auth .auth-hero .auth-card .auth-footer a[href="/forgot-password"]:hover,
.p-auth .auth-hero .auth-card .auth-footer a[href="/forgot-password"]:focus {
    color: var(--auth-light-text);
}

.auth-header h2 {
    color: var(--auth-plan-highlight);
    font-size: 1.8rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.auth-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
    margin: 0;
}

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

.auth-hero-copy .auth-subtitle {
    font-size: clamp(1.1rem, 2.2vw, 1.3rem);
    max-width: 620px;
    color: var(--auth-muted-text);
}

/* Benefits Section */
.auth-benefits {
    background: rgb(11 79 156 / 5%);
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.p-auth .auth-benefits {
    margin-bottom: 0;
}

.auth-benefits h3 {
    color: var(--primary-blue);
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 1rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.benefits-list li {
    display: flex;
    align-items: center;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.benefits-list li:last-child {
    margin-bottom: 0;
}

.benefit-icon {
    color: var(--success-green);
    font-weight: 600;
    margin-right: 0.75rem;
    font-size: 1rem;
}

.hero-benefits .benefits-list li {
    color: var(--auth-light-text);
    font-size: 0.95rem;
}

.p-auth .benefit-icon {
    color: var(--auth-plan-highlight);
}

/* Form Styles */
.auth-form {
    margin: 2rem 0;
}

.form-group {
    margin-bottom: 1.5rem;
}

.auth-footer-secondary {
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

.auth-quick-links {
    margin-top: 2rem;
    display: grid;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.auth-quick-links a {
    color: var(--primary-blue);
    font-weight: 600;
    text-decoration: none;
}

.auth-quick-links a:hover,
.auth-quick-links a:focus {
    text-decoration: underline;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="text"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgb(11 79 156 / 10%);
}

.form-group input.error {
    border-color: var(--error-red);
}

.form-group input.error:focus {
    border-color: var(--error-red);
    box-shadow: 0 0 0 3px rgb(220 53 69 / 10%);
}

/* Loading States */
.auth-form.loading input {
    pointer-events: none;
    opacity: 0.7;
}

/* Form Validation States */
.form-group.valid input {
    border-color: var(--success-green);
}

.form-group.valid input:focus {
    border-color: var(--success-green);
    box-shadow: 0 0 0 3px rgb(40 167 69 / 10%);
}

/* Checkbox Styles */
.checkbox-group {
    position: relative;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    font-size: 0.95rem;
    line-height: 1.4;
    font-weight: normal;
}

.checkbox-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 18px;
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 3px;
    margin-right: 0.75rem;
    margin-top: 0.125rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.checkbox-label:hover .checkmark {
    border-color: var(--primary-blue);
}

.checkbox-label input:checked ~ .checkmark {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
}

.checkbox-label input:checked ~ .checkmark::after {
    content: "\2713";
    position: absolute;
    top: -2px;
    left: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label a {
    color: var(--primary-blue);
    text-decoration: none;
}

/* moved after .auth-footer link rules to satisfy no-descending-specificity */

/* Password Requirements */
.password-requirements {
    margin-top: 0.5rem;
}

.password-requirements small {
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Field Errors */
.field-error {
    color: var(--error-red);
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

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

/* Form Messages */
.form-error,
.form-success {
    padding: 1rem;
    border-radius: 6px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.hidden {
    display: none !important;
}

.form-error {
    background: rgb(220 53 69 / 10%);
    border: 1px solid rgb(220 53 69 / 20%);
    color: var(--error-red);
}

.form-success {
    background: rgb(40 167 69 / 10%);
    border: 1px solid rgb(40 167 69 / 20%);
    color: var(--success-green);
}

/* Hidden elements */
.btn-loading,
.form-error,
.form-success {
    display: none;
}

.form-error.show,
.form-success.show {
    display: block;
}

.btn-loading.show {
    display: inline;
}

.btn-text.hide {
    display: none;
}

.p-auth .auth-hero .auth-card .form-error {
    background: rgb(220 53 69 / 15%);
    border-color: rgb(220 53 69 / 22%);
    text-align: center;
}

.p-auth .auth-hero .auth-card .form-success {
    background: rgb(40 167 69 / 15%);
    border-color: rgb(40 167 69 / 22%);
    text-align: center;
}

/* Button Styles */
.p-auth .btn-full {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 1rem;
}

.p-auth .btn-primary {
    background: var(--primary-blue);
    color: #fff;
    border: 2px solid var(--primary-blue);
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.p-auth .btn-primary:hover {
    background: rgb(11 79 156 / 90%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgb(11 79 156 / 30%);
}

.p-auth .btn-primary:disabled {
    background: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.p-auth .auth-form.loading .btn-primary {
    background: var(--text-muted);
    border-color: var(--text-muted);
    cursor: not-allowed;
}

.p-auth .auth-hero .auth-card .btn-primary {
    background: var(--auth-plan-highlight);
    border-color: transparent;
    border-radius: 12px;
    font-size: 1.05rem;
    box-shadow: 0 15px 30px rgb(247 127 0 / 25%);
    font-weight: 700;
}

.p-auth .auth-entry-card .btn-primary {
    width: min(100%, 520px);
    margin-inline: auto;
    display: block;
}

.p-auth .auth-hero .auth-card .btn-primary:hover {
    background: var(--auth-plan-highlight-dark);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgb(247 127 0 / 25%);
}

.p-auth .auth-hero .auth-card .btn-primary:focus-visible {
    outline: 2px solid rgb(247 127 0 / 86%);
    outline-offset: 2px;
}

/* Auth Footer */
.auth-footer {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: 2rem;
    display: grid;
    gap: 0.4rem;
}

.p-auth .auth-hero .auth-card .auth-footer {
    border-top-color: rgb(255 255 255 / 12%);
}

.auth-footer p {
    margin: 0;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* CTA and secondary links on the auth card footer */
.auth-link-cta {
    color: var(--auth-plan-highlight);
    font-weight: 700;
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
}

.auth-link-cta::after {
    content: " →";
    transition: transform 0.2s ease;
}

.auth-link-cta:hover,
.auth-link-cta:focus {
    text-decoration: underline;
}

.auth-link-cta:focus-visible,
.auth-link-secondary:focus-visible {
    outline: 2px solid var(--auth-plan-highlight);
    outline-offset: 3px;
    border-radius: 3px;
}

.auth-link-secondary {
    color: var(--auth-muted-text);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 3px;
}

.auth-link-secondary:hover,
.auth-link-secondary:focus {
    color: rgb(245 248 255 / 96%);
}

.p-auth .auth-entry-card .form-group label {
    color: rgb(233 241 255 / 94%);
}

.p-auth .auth-entry-card .form-group input[type="email"],
.p-auth .auth-entry-card .form-group input[type="password"],
.p-auth .auth-entry-card .form-group input[type="text"] {
    border: 1px solid rgb(79 107 152 / 42%);
    border-radius: 12px;
    background: rgb(15 29 56 / 72%);
    color: rgb(244 248 255 / 95%);
    box-shadow: inset 0 2px 6px rgb(8 16 32 / 35%);
}

.p-auth .auth-entry-card .form-group input::placeholder {
    color: rgb(228 219 204 / 72%);
}

.p-auth .auth-entry-card .form-group input:focus {
    border-color: rgb(247 127 0 / 92%);
    box-shadow: 0 0 0 3px rgb(247 127 0 / 28%), inset 0 2px 6px rgb(8 16 32 / 45%);
}

body.light-mode.p-auth .auth-header h2 {
    color: #1f3f8c;
}

body.light-mode.p-auth .auth-subtitle,
body.light-mode.p-auth .auth-hero-copy .auth-subtitle {
    color: #354b73;
}

body.light-mode.p-auth .auth-entry-card {
    border-color: rgb(44 81 160 / 22%);
    background:
        linear-gradient(180deg, rgb(255 255 255 / 92%), rgb(255 255 255 / 86%)),
        linear-gradient(160deg, rgb(245 249 255 / 98%) 0%, rgb(233 241 255 / 95%) 58%, rgb(225 237 255 / 92%) 100%);
    box-shadow:
        0 0 0 1px rgb(44 81 160 / 9%),
        0 26px 52px rgb(15 33 70 / 14%);
}

body.light-mode.p-auth .auth-entry-topline-pill {
    border-color: rgb(44 81 160 / 20%);
    background: rgb(53 86 153 / 6%);
    color: #324c7a;
}

body.light-mode.p-auth .auth-entry-segment {
    background: rgb(53 86 153 / 6%);
    border-color: rgb(44 81 160 / 20%);
}

body.light-mode.p-auth .auth-entry-segment-button {
    color: #2f4c7e;
}

body.light-mode.p-auth .auth-entry-segment-button.is-active,
body.light-mode.p-auth .auth-entry-segment-button:hover,
body.light-mode.p-auth .auth-entry-segment-button:focus-visible {
    color: #1e2233;
}

body.light-mode.p-auth .auth-entry-card .form-group label {
    color: #22365f;
}

body.light-mode.p-auth .auth-entry-card .form-group input[type="email"],
body.light-mode.p-auth .auth-entry-card .form-group input[type="password"],
body.light-mode.p-auth .auth-entry-card .form-group input[type="text"] {
    border-color: rgb(44 81 160 / 28%);
    background: rgb(255 255 255 / 97%);
    color: #152847;
    box-shadow: inset 0 1px 3px rgb(17 37 72 / 10%);
}

body.light-mode.p-auth .auth-entry-card .form-group input::placeholder {
    color: #5f7296;
}

body.light-mode.p-auth .auth-entry-card .form-group input:focus {
    border-color: rgb(247 127 0 / 84%);
    box-shadow: 0 0 0 3px rgb(247 127 0 / 20%), inset 0 1px 3px rgb(17 37 72 / 14%);
}

body.light-mode.p-auth .auth-entry-card .auth-footer,
body.light-mode.p-auth .auth-entry-card .auth-entry-footer {
    border-top-color: rgb(44 81 160 / 20%);
}

body.light-mode.p-auth .auth-link-secondary {
    color: #355280;
}

body.light-mode.p-auth .auth-link-secondary:hover,
body.light-mode.p-auth .auth-link-secondary:focus {
    color: #1f3f8c;
}

.p-auth .auth-entry-card .remember-group .checkbox-label {
    color: rgb(235 241 255 / 94%);
    font-weight: 600;
}

.p-auth .auth-entry-card .checkmark {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 2px solid rgb(79 107 152 / 58%);
    background: rgb(15 29 56 / 78%);
    box-shadow: inset 0 2px 6px rgb(8 16 32 / 35%);
}

.p-auth .auth-entry-card .checkbox-label:hover .checkmark,
.p-auth .auth-entry-card .checkbox-label:focus-within .checkmark {
    border-color: rgb(247 127 0 / 92%);
}

.p-auth .auth-entry-card .checkbox-label input:checked ~ .checkmark {
    background: var(--auth-plan-highlight);
    border-color: var(--auth-plan-highlight);
}

.p-auth .auth-entry-card .checkbox-label input:checked ~ .checkmark::after {
    top: -1px;
    left: 4px;
    font-size: 15px;
}

/* keep more specific checkbox link states after the base .auth-footer links */
.checkbox-label a:hover {
    text-decoration: underline;
}

/* Register page accent alignment (scoped to pages that include a plan selector in the hero) */
.p-auth:has(.plan-selector) .auth-hero .auth-card .auth-header h2 {
    /* Use the same accent treatment as the primary CTA theme */
    color: var(--auth-plan-highlight); /* fallback */
    background-image: linear-gradient(180deg, var(--auth-plan-highlight), #ffb366);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 14px rgb(247 127 0 / 18%);
}

.p-auth:has(.plan-selector) .auth-hero .auth-card .form-group label {
    color: var(--auth-plan-highlight);
}

/* Plan summary title (e.g., "Free — Community") should use the same accent color */
.p-auth:has(.plan-selector) .plan-summary #planSummaryTitle {
    color: var(--auth-plan-highlight);
}

/* Auth Info Panel */
.auth-info {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgb(0 0 0 / 5%);
    padding: 2rem;
    border: 1px solid var(--border-color);
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.plan-selector {
    display: grid;

    /* Allow columns to grow wide enough so labels like "Professional" don't split mid-word.
       Switch to an auto-fit grid with a sensible minimum column width. */
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(1rem, 2.4vw, 1.6rem);
    align-items: stretch;
}

.product-selector {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.9rem;
}

.product-card {
    background: rgb(255 255 255 / 6%);
    border: 1px solid var(--auth-glass-border);
    border-radius: 16px;
    padding: 1rem;
    text-align: left;
    color: var(--auth-light-text);
    cursor: pointer;
    display: grid;
    gap: 0.35rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.product-card:hover {
    transform: translateY(-2px);
    border-color: rgb(255 255 255 / 30%);
    box-shadow: 0 10px 24px rgb(9 17 35 / 28%);
}

.product-card.selected,
.product-card[aria-checked="true"] {
    border-color: var(--auth-plan-highlight);
    background: rgb(247 127 0 / 12%);
    box-shadow: 0 15px 28px rgb(247 127 0 / 20%);
}

.product-card-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--auth-muted-text);
    font-weight: 700;
}

.product-card-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: var(--auth-plan-highlight);
}

.product-card-copy {
    font-size: 0.88rem;
    color: var(--auth-muted-text);
    line-height: 1.4;
}

.product-summary {
    margin-top: 0.25rem;
    padding: 1rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--auth-glass-border);
    background: rgb(255 255 255 / 7%);
}

.product-summary h3 {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    color: var(--auth-plan-highlight);
}

.product-summary p {
    margin: 0;
    font-size: 0.92rem;
    color: var(--auth-muted-text);
}

.service-use-cases {
    margin-top: 0.6rem;
    padding: 1.15rem 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--auth-glass-border);
    background: rgb(255 255 255 / 7%);
}

.service-use-cases h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    letter-spacing: 0.02em;
    color: var(--auth-plan-highlight);
}

.service-use-case-list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.65rem;
}

.service-use-case-list li {
    display: grid;
    gap: 0.12rem;
    padding-left: 0.9rem;
    border-left: 2px solid rgb(247 127 0 / 34%);
}

.use-case-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--auth-light-text);
}

.use-case-copy {
    font-size: 0.88rem;
    color: var(--auth-muted-text);
    line-height: 1.4;
}

.plan-selector-billing {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 0.2rem;
}

.plan-selector-billing .billing-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.35rem;
    border-radius: 999px;
    background: rgb(255 255 255 / 8%);
    border: 1px solid rgb(255 255 255 / 18%);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 6%);
    /* stylelint-disable-next-line property-no-vendor-prefix */
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.plan-selector-billing .billing-toggle-option {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--auth-muted-text);
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.4rem 1.05rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-selector-billing .billing-toggle-option.is-active {
    background: linear-gradient(135deg, var(--auth-plan-highlight), rgb(247 127 0 / 70%));
    color: #0b1224;
    box-shadow: 0 10px 20px rgb(10 15 25 / 35%);
}

.plan-selector-billing .billing-toggle-option:focus-visible {
    outline: 2px solid var(--auth-plan-highlight);
    outline-offset: 3px;
}

.plan-selector-billing .billing-toggle-save {
    margin-left: 0.35rem;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 700;
    color: inherit;
}

.plan-selector-billing .billing-toggle-note {
    margin: 0;
    font-size: 0.9rem;
    color: var(--auth-muted-text);
}

.plan-card {
    position: relative;
    background: rgb(255 255 255 / 6%);
    border: 1px solid var(--auth-glass-border);
    border-radius: 18px;
    padding: clamp(1.5rem, 3vw, 2rem);
    text-align: left;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
    /* stylelint-disable-next-line property-no-vendor-prefix */
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: inherit;

    /* Ensure content stays inside and wraps instead of overflowing */
    box-sizing: border-box;
    display: flex;
    flex-direction: column;

    /* Avoid breaking words like "Professional" in the middle */
    overflow-wrap: break-word;
    word-break: normal;
}

.plan-card .plan-card-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.75rem;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.plan-card .plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--auth-plan-highlight);
    min-width: 0;
    flex: 1 1 auto;
    word-break: normal;
    overflow-wrap: normal;
    white-space: normal;
}

.plan-card .plan-tag {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--auth-muted-text);
    min-width: 0;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.plan-card .plan-price {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.35rem;
    color: #fff;
    margin-bottom: 1rem;
}

.plan-card .plan-price-currency {
    font-size: 1rem;
}

.plan-card .plan-price-value {
    font-size: 2.1rem;
    font-weight: 700;
}

.plan-card .plan-price-per {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--auth-muted-text);
}

.plan-card .plan-price[data-billing-cycle="annual"] .plan-price-per {
    color: var(--auth-plan-highlight);
}

.plan-card .plan-price-note {
    flex-basis: 100%;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--auth-plan-highlight);
}

.plan-card .plan-price-note.hidden {
    display: none;
}

/* Seats + API sublines (parity with overlay price blocks) */
.plan-card .price-subtext {
    margin: 0.15rem 0;
    color: var(--auth-muted-text);
    font-size: 0.9rem;
}
.plan-card .price-subtext:first-of-type { margin-top: 0.2rem; }
.plan-card .price-subtext:last-of-type { margin-bottom: 0.75rem; }

.plan-feature-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--auth-muted-text);
}

/* Replace bullet dots with checkmark pills to match overlay visuals */
.plan-feature-list li::before { content: none; }

.plan-feature-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.plan-feature-list .qk-check {
    flex: 0 0 auto;
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--auth-plan-highlight) 12%, rgb(247 144 29 / 90%) 88%);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    box-shadow: 0 4px 10px rgb(247 127 0 / 28%);
    text-rendering: optimizelegibility;
}

.plan-feature-list .qk-check-text {
    flex: 1 1 auto;
    min-width: 0;
}

.plan-card:hover {
    transform: translateY(-6px);
    border-color: rgb(255 255 255 / 30%);
    box-shadow: 0 25px 55px rgb(9 17 35 / 35%);
}

.plan-card.selected,
.plan-card[aria-checked="true"] {
    border: 1px solid var(--auth-plan-highlight);
    box-shadow: 0 25px 55px rgb(247 127 0 / 25%);
    background: rgb(247 127 0 / 12%);
}

.plan-card.featured::after,
.plan-card.selected::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 18px;
    pointer-events: none;
    box-shadow: inset 0 0 0 1px rgb(247 127 0 / 10%);
}

.plan-card .plan-badge {
    position: absolute;
    top: 16px;
    right: 18px;
    background: var(--auth-plan-highlight);
    color: #fff;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
}

.plan-card .plan-badge.plan-badge-coming-soon {
    background: rgb(255 255 255 / 16%);
    color: #fff;
}

.plan-card .plan-inline-cta[disabled],
.plan-card .plan-inline-cta[aria-disabled="true"] {
    cursor: not-allowed;
    opacity: 0.72;
    box-shadow: none;
    transform: none;
}

.plan-summary {
    margin-top: clamp(1.5rem, 3vw, 2rem);
    padding: clamp(1.4rem, 2.4vw, 1.8rem);
    background: rgb(255 255 255 / 7%);
    border-radius: 16px;
    border: 1px solid var(--auth-glass-border);
    /* stylelint-disable-next-line property-no-vendor-prefix */
    /* stylelint-disable-next-line property-no-vendor-prefix */
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 20px 40px rgb(8 15 30 / 25%);
}

.plan-summary h3 {
    margin: 0 0 0.6rem;
    font-size: 1.15rem;
    color: #fff;
}

.plan-summary p {
    margin: 0;
    color: var(--auth-muted-text);
    font-size: 0.95rem;
}

.plan-summary-note {
    margin-top: 0.5rem !important;
    font-size: 0.9rem !important;
    color: rgb(228 235 255 / 70%) !important;
}

.plan-summary-actions {
    margin-top: 1rem;
}

.plan-matrix-link {
    color: var(--auth-plan-highlight);
    font-weight: 600;
    text-decoration: none;
}

.plan-matrix-link:hover {
    text-decoration: underline;
}

.info-section h3 {
    color: var(--primary-blue);
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 0.75rem;
}

.info-section p {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Responsive Design */
@media (width <= 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        max-width: 500px;
    }
    
    .auth-info {
        order: -1;
    }
    
    .info-section {
        margin-bottom: 1.5rem;
    }

    .auth-hero-container {
        grid-template-columns: 1fr;
        padding: 2.5rem 2rem;
    }

    .plan-selector {
        /* Keep cards in a horizontal grid on tablet widths; mobile carousel handles narrower screens. */
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }
}

@media (width <= 768px) {
    .auth-main {
        padding: 1rem 0;
    }

    .auth-info {
        padding: 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
    
    .auth-subtitle {
        font-size: 1rem;
    }

    .auth-hero-container {
        padding: 2rem 1.25rem;
    }
}

@media (width <= 576px) {
    .auth-info {
        padding: 1.5rem;
        margin: 0 0.5rem;
    }
    
    .auth-container {
        padding: 0;
    }

    .auth-hero-container {
        gap: 1.75rem;
    }
}

/* Mobile: horizontal, snap-scrolling plan selector (register page) */
@media (width <= 640px) {
    .product-selector {
        grid-template-columns: 1fr;
    }

    .plan-selector {
        grid-template-columns: unset;
        grid-auto-flow: column;
        grid-auto-columns: 85%;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }
    .plan-selector .plan-card { scroll-snap-align: start; }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Center the app-shell footer tagline on authentication pages */
body.p-auth .hx-footer--app .hx-footer-bottom--app {
    justify-content: center;
    text-align: center;
}

body.p-auth .hx-footer--app .hx-footer-bottom--app p {
    margin: 0 auto;
    max-width: 42rem;
    line-height: 1.5;
}

/* stylelint-enable order/order */
