/* ============================================================================
   TPL AUTH — sign-in, account and error pages (design system v4)
   ----------------------------------------------------------------------------
   Loaded after tpl-theme.css by resources/views/partials/auth-head.blade.php
   (login designs, layouts/guest) and by errors/minimal.blade.php. Admin pages
   never load it. Spec: docs/design-system/README.md, "Auth & error pages".
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.tpl-auth-page {
    font-family: var(--tpl-font);
    font-size: var(--tpl-fs-base);
    line-height: var(--tpl-lh-body);
    color: var(--tpl-text-2);
    background: var(--tpl-canvas);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.tpl-auth-page a { color: var(--tpl-primary-ink); font-weight: 600; text-decoration: none; }
.tpl-auth-page a:hover { text-decoration: underline; text-underline-offset: 2px; }
.tpl-auth-page :focus-visible { outline: 2px solid var(--tpl-primary); outline-offset: 2px; }
.tpl-auth-page h1, .tpl-auth-page h2 { font-family: var(--tpl-font-heading); color: var(--tpl-text); }

/* The reference's dot grid — used only behind auth and error pages */
.tpl-dot-grid {
    background-color: var(--tpl-canvas);
    background-image: radial-gradient(var(--tpl-border-strong) 1px, transparent 1px);
    background-size: 24px 24px;
}

/* ── Split layout: brand panel + form ── */
.tpl-auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.tpl-auth-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 40px;
    padding: 40px 56px;
    background: var(--tpl-brand-surface, #18181b);
    color: var(--tpl-on-brand-surface, #fafafa);
    overflow: hidden;
}
/* A quiet dot grid on the panel instead of illustrations or particles */
.tpl-auth-brand::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(color-mix(in srgb, currentColor 16%, transparent) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(135deg, transparent 20%, #000 70%);
    -webkit-mask-image: linear-gradient(135deg, transparent 20%, #000 70%);
    pointer-events: none;
}
.tpl-auth-brand > * { position: relative; z-index: 1; }
.tpl-auth-brand-row { display: flex; align-items: center; gap: 12px; }
.tpl-auth-logo { height: 44px; width: auto; max-width: 180px; object-fit: contain; background: #fff; border-radius: var(--tpl-radius-sm); padding: 4px 8px; }
.tpl-auth-mark {
    width: 44px; height: 44px; border-radius: var(--tpl-radius-sm);
    background: color-mix(in srgb, currentColor 14%, transparent);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--tpl-font-heading); font-weight: 700; font-size: 18px;
}
.tpl-auth-name { font-family: var(--tpl-font-heading); font-size: 18px; font-weight: 650; letter-spacing: var(--tpl-tracking-heading); line-height: 1.2; }
.tpl-auth-tag { font-size: var(--tpl-fs-label); opacity: .72; }
.tpl-auth-copy { max-width: 460px; }
.tpl-auth-copy h1 {
    font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem);
    line-height: 1.12; font-weight: 700; letter-spacing: -.03em;
    color: inherit; margin: 0 0 14px;
}
.tpl-auth-copy p { font-size: 15px; opacity: .8; margin: 0 0 28px; }
.tpl-auth-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.tpl-auth-points li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--tpl-fs-base); opacity: .92; }
.tpl-auth-points svg {
    flex: 0 0 22px; width: 22px; height: 22px; margin-top: 0;
    stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    padding: 4px; border-radius: var(--tpl-radius-xs); background: color-mix(in srgb, currentColor 14%, transparent);
}
.tpl-auth-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tpl-auth-pills span {
    padding: 6px 14px; border-radius: var(--tpl-radius-pill); font-size: var(--tpl-fs-label); font-weight: 600;
    background: color-mix(in srgb, currentColor 10%, transparent); border: 1px solid color-mix(in srgb, currentColor 22%, transparent);
}
.tpl-auth-foot { font-size: var(--tpl-fs-sm); opacity: .6; }
.tpl-auth-brand.is-centered { justify-content: center; align-items: center; text-align: center; }
.tpl-auth-brand.is-centered .tpl-auth-copy { max-width: 440px; }
.tpl-auth-brand.is-centered .tpl-auth-pills { justify-content: center; }
.tpl-auth-hero-logo { max-height: 120px; max-width: 240px; margin: 0 auto 28px; display: block; object-fit: contain; background: #fff; border-radius: var(--tpl-radius); padding: 10px 14px; }

.tpl-auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.tpl-auth-card { width: 100%; max-width: 420px; }
.tpl-auth-card.is-framed {
    max-width: 440px;
    background: var(--tpl-surface);
    border: 1px solid var(--tpl-border);
    border-radius: var(--tpl-radius-xl);
    box-shadow: var(--tpl-shadow-2);
    padding: 32px;
}
.tpl-auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 12px; margin-bottom: 24px; }
.tpl-auth-top.is-spread { justify-content: space-between; }
.tpl-auth-mobile-logo { display: none; }
.tpl-auth-mobile-logo img { max-height: 44px; max-width: 200px; object-fit: contain; }

.tpl-theme-btn {
    width: 40px; height: 40px; border-radius: var(--tpl-radius-sm);
    border: 1px solid var(--tpl-border); background: var(--tpl-surface); color: var(--tpl-text-label);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 40px;
}
.tpl-theme-btn:hover { background: var(--tpl-hover); color: var(--tpl-text); }
.tpl-theme-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tpl-theme-btn .sun, .tpl-theme-btn .fa-sun { display: none; }
html[data-theme="dark"] .tpl-theme-btn .sun, html[data-theme="dark"] .tpl-theme-btn .fa-sun { display: inline-block; }
html[data-theme="dark"] .tpl-theme-btn .moon, html[data-theme="dark"] .tpl-theme-btn .fa-moon { display: none; }

.tpl-auth-head h2 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; letter-spacing: -.025em; margin: 0 0 6px; }
.tpl-auth-head p { margin: 0 0 24px; color: var(--tpl-text-3); }

.tpl-auth-notice { border-radius: var(--tpl-radius-sm); padding: 10px 12px; margin-bottom: 16px; font-size: var(--tpl-fs-label); font-weight: 500; border: 1px solid; }
.tpl-auth-notice.is-error { background: var(--tpl-red-soft); border-color: var(--tpl-red-border); color: var(--tpl-red); }
.tpl-auth-notice.is-success { background: var(--tpl-green-soft); border-color: var(--tpl-green-border); color: var(--tpl-green); }
.tpl-auth-notice.is-info { background: var(--tpl-amber-soft); border-color: var(--tpl-amber-border); color: var(--tpl-amber); }

.tpl-auth-field { margin-bottom: 16px; }
.tpl-auth-field-top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.tpl-auth-field label { font-size: var(--tpl-fs-label); font-weight: 600; color: var(--tpl-text-label); }
.tpl-auth-field-top a { font-size: var(--tpl-fs-label); }
.tpl-auth-control { position: relative; }
.tpl-auth-control input {
    width: 100%;
    height: 44px;
    padding: 0 14px;
    font: inherit;
    font-size: 15px;
    color: var(--tpl-text);
    background: var(--tpl-bg-soft);
    border: 1px solid var(--tpl-control-border);
    border-radius: var(--tpl-radius-sm);
    transition: border-color .15s, box-shadow .15s, background-color .15s;
}
.tpl-auth-control input::placeholder { color: var(--tpl-text-3); }
.tpl-auth-control input:focus { outline: 0; background: var(--tpl-surface); border-color: var(--tpl-primary); box-shadow: var(--tpl-focus-ring); }
.tpl-auth-control input.axl-invalid { border-color: var(--tpl-red); }
.tpl-auth-control.has-icon input { padding-left: 42px; }
.tpl-auth-control.has-icon > i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--tpl-text-3); font-size: 14px; pointer-events: none; }
.tpl-auth-control.has-toggle input { padding-right: 48px; }
.tpl-pw-toggle {
    position: absolute; right: 4px; top: 4px; width: 36px; height: 36px;
    border: 0; background: transparent; border-radius: calc(var(--tpl-radius-sm) - 2px); color: var(--tpl-text-3);
    display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
}
.tpl-pw-toggle:hover { background: var(--tpl-hover); color: var(--tpl-text); }
.tpl-pw-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tpl-pw-toggle .eye-off { display: none; }
.tpl-pw-toggle[aria-pressed="true"] .eye-off { display: block; }
.tpl-pw-toggle[aria-pressed="true"] .eye-on { display: none; }
/* Inline error slots filled by auth/partials/ajax-login */
.tpl-auth-page .ferr { display: none; margin: 6px 0 0; font-size: var(--tpl-fs-label); font-weight: 500; color: var(--tpl-red); }
.tpl-auth-page .ferr.show { display: block; }

.tpl-auth-check { display: inline-flex; align-items: center; gap: 8px; margin: 2px 0 20px; font-size: var(--tpl-fs-base); color: var(--tpl-text-2); cursor: pointer; }
.tpl-auth-check input { width: 16px; height: 16px; accent-color: var(--tpl-primary); margin: 0; }

.tpl-auth-submit {
    width: 100%; height: 46px; border: 0; border-radius: var(--tpl-radius-sm);
    background: var(--tpl-primary); color: var(--tpl-on-primary);
    font: inherit; font-size: 15px; font-weight: 650; cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    box-shadow: var(--tpl-shadow-1);
    transition: background-color .15s, box-shadow .15s, transform .15s;
}
.tpl-auth-submit:hover { background: var(--tpl-primary-hover); box-shadow: var(--tpl-shadow-2); transform: translateY(-1px); }
.tpl-auth-submit:disabled { opacity: .7; cursor: progress; transform: none; }
.tpl-auth-page .axl-spinner { border-color: color-mix(in srgb, var(--tpl-on-primary) 45%, transparent); border-top-color: var(--tpl-on-primary); }

/* Breeze message components (x-input-error, x-auth-session-status) outside the guest card */
.tpl-auth-main ul.text-red-600 { list-style: none; padding: 0; margin: 6px 0 0; color: var(--tpl-red); font-size: var(--tpl-fs-label); font-weight: 500; }
.tpl-auth-main div.text-green-600 { background: var(--tpl-green-soft); border: 1px solid var(--tpl-green-border); color: var(--tpl-green); border-radius: var(--tpl-radius-sm); padding: 10px 12px; margin-bottom: 16px; font-size: var(--tpl-fs-label); font-weight: 500; }
.tpl-auth-notice i { margin-right: 6px; }

.tpl-auth-otp { --otpx-accent-override: var(--tpl-primary); --otpx-border: var(--tpl-border); margin-top: 12px; }

.tpl-auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 14px; color: var(--tpl-text-3); font-size: var(--tpl-fs-label); font-weight: 600; }
.tpl-auth-divider::before, .tpl-auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--tpl-border); }
.tpl-demo-note { font-size: var(--tpl-fs-label); color: var(--tpl-text-3); margin: -4px 0 12px; text-align: center; }
.tpl-demo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.tpl-demo-tile {
    display: flex; align-items: center; gap: 10px; padding: 10px 12px;
    border: 1px solid var(--tpl-border); border-radius: var(--tpl-radius-sm);
    background: var(--tpl-surface); color: var(--tpl-text) !important; text-decoration: none !important;
    transition: border-color .15s, background-color .15s;
}
.tpl-demo-tile:hover { border-color: var(--tpl-border-strong); background: var(--tpl-hover); }
.tpl-demo-tile svg { flex: 0 0 18px; width: 18px; height: 18px; fill: none; stroke: var(--tpl-text-label); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tpl-demo-tile b { display: block; font-size: var(--tpl-fs-label); font-weight: 650; }
.tpl-demo-tile small { display: block; font-size: var(--tpl-fs-sm); color: var(--tpl-text-3); font-weight: 400; }
.tpl-demo-tile.is-wide { grid-column: 1 / -1; }

.tpl-auth-reglink { text-align: center; margin-top: 24px; font-size: var(--tpl-fs-base); color: var(--tpl-text-3); }
.tpl-preview-pill {
    position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
    padding: 6px 16px; border-radius: var(--tpl-radius-pill); background: var(--tpl-surface);
    border: 1px solid var(--tpl-border-strong); color: var(--tpl-text-2); font-size: var(--tpl-fs-sm); font-weight: 600;
    box-shadow: var(--tpl-shadow-2);
}

/* Desktop: the theme button sits in the corner of the form pane, not in the card */
@media (min-width: 992px) {
    .tpl-auth-main { position: relative; }
    .tpl-auth-main .tpl-auth-top { position: absolute; top: 20px; right: 24px; margin: 0; }
}

/* ── Tablet & phone: the brand panel shrinks to a top bar, then goes ── */
@media (max-width: 991.98px) {
    .tpl-auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
    .tpl-auth-brand { padding: 20px 24px; gap: 0; }
    .tpl-auth-brand .tpl-auth-copy, .tpl-auth-brand .tpl-auth-foot, .tpl-auth-brand .tpl-auth-hero-logo { display: none; }
    .tpl-auth-brand.is-centered { display: none; }
    .tpl-auth-brand.is-centered + .tpl-auth-main .tpl-auth-mobile-logo { display: block; }
    .tpl-auth-main { justify-content: flex-start; padding: 24px 20px 40px; }
    .tpl-auth-top { margin-bottom: 12px; }
}
@media (max-width: 575.98px) {
    .tpl-auth-card.is-framed { padding: 24px 20px; border-radius: var(--tpl-radius-lg); }
}
@media (max-width: 400px) {
    .tpl-demo-grid { grid-template-columns: 1fr; }
}

/* ── Guest pages (layouts/guest: forgot / reset / verify / confirm / OTP / register) ──
   The Breeze pages keep their Tailwind markup; these rules put it on the tokens. */
.tpl-guest-shell { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 16px 48px; }
.tpl-guest-top { width: 100%; max-width: 480px; display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.tpl-guest-top img { max-height: 48px; max-width: 220px; object-fit: contain; }
.tpl-guest-card {
    width: 100%;
    background: var(--tpl-surface);
    border: 1px solid var(--tpl-border);
    border-radius: var(--tpl-radius-xl);
    box-shadow: var(--tpl-shadow-2);
    padding: 32px;
    color: var(--tpl-text-2);
}
@media (max-width: 575.98px) { .tpl-guest-card { padding: 24px 20px; border-radius: var(--tpl-radius-lg); } }
.tpl-guest-foot { margin-top: 20px; font-size: var(--tpl-fs-sm); color: var(--tpl-text-3); }

.tpl-guest-card h1, .tpl-guest-card h2, .tpl-guest-card h3, .tpl-guest-card h4 {
    font-family: var(--tpl-font-heading) !important; color: var(--tpl-text) !important;
    font-weight: 700 !important; letter-spacing: -.02em !important; font-style: normal !important;
}
.tpl-guest-card h1 { font-size: 1.5rem !important; }
.tpl-guest-card p { color: var(--tpl-text-3) !important; font-style: normal !important; }
.tpl-guest-card .text-gray-900, .tpl-guest-card .text-gray-800 { color: var(--tpl-text) !important; }
.tpl-guest-card .text-gray-700, .tpl-guest-card .text-gray-600 { color: var(--tpl-text-2) !important; }
.tpl-guest-card .text-gray-500, .tpl-guest-card .text-gray-400 { color: var(--tpl-text-3) !important; }
/* Nothing below the 11px floor (the register wizard used 10px caps) */
.tpl-guest-card .text-\[10px\], .tpl-guest-card .text-\[9px\] { font-size: var(--tpl-fs-xs) !important; }
.tpl-guest-card .font-black { font-weight: 700 !important; }
.tpl-guest-card .italic { font-style: normal !important; }

.tpl-guest-card label {
    color: var(--tpl-text-label) !important;
    font-size: var(--tpl-fs-label) !important;
    font-weight: 600 !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    padding-left: 0 !important;
}
/* Plan / option cards are <label> wrappers: keep their own text styles */
.tpl-guest-card label.cursor-pointer { font-size: inherit !important; font-weight: inherit !important; color: inherit !important; }

.tpl-guest-card input[type="text"], .tpl-guest-card input[type="email"], .tpl-guest-card input[type="password"],
.tpl-guest-card input[type="tel"], .tpl-guest-card input[type="number"], .tpl-guest-card input[type="url"],
.tpl-guest-card input:not([type]), .tpl-guest-card select, .tpl-guest-card textarea {
    background: var(--tpl-bg-soft) !important;
    border: 1px solid var(--tpl-control-border) !important;
    border-radius: var(--tpl-radius-sm) !important;
    color: var(--tpl-text) !important;
    font-size: 15px !important;
    box-shadow: none !important;
    min-height: 44px;
}
.tpl-guest-card input::placeholder, .tpl-guest-card textarea::placeholder { color: var(--tpl-text-3) !important; }
.tpl-guest-card input:focus, .tpl-guest-card select:focus, .tpl-guest-card textarea:focus {
    background: var(--tpl-surface) !important;
    border-color: var(--tpl-primary) !important;
    box-shadow: var(--tpl-focus-ring) !important;
    outline: 0 !important;
}
.tpl-guest-card input[type="checkbox"], .tpl-guest-card input[type="radio"] { accent-color: var(--tpl-primary); min-height: 0; }
.tpl-guest-card .relative > i.fas, .tpl-guest-card .relative > i.far { color: var(--tpl-text-3) !important; }

.tpl-guest-card button[type="submit"], .tpl-guest-card .btn-brand-primary,
.tpl-guest-card button.bg-brand-primary {
    background: var(--tpl-primary) !important;
    color: var(--tpl-on-primary) !important;
    border: 0 !important;
    border-radius: var(--tpl-radius-sm) !important;
    font-weight: 650 !important;
    font-size: 15px !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    box-shadow: var(--tpl-shadow-1) !important;
    transform: none !important;
    filter: none !important;
    min-height: 46px;
}
.tpl-guest-card button[type="submit"]:hover, .tpl-guest-card .btn-brand-primary:hover,
.tpl-guest-card button.bg-brand-primary:hover { background: var(--tpl-primary-hover) !important; box-shadow: var(--tpl-shadow-2) !important; }

/* Brand utility classes the Breeze / register markup uses → tokens. A brand fill
   always carries --tpl-on-primary, even where the markup says text-white. */
.tpl-guest-card .bg-brand-primary, .tpl-guest-card .bg-brand-primary.text-white { background-color: var(--tpl-primary) !important; color: var(--tpl-on-primary) !important; }
.tpl-guest-card .bg-brand-primary-light { background-color: var(--tpl-primary-soft) !important; }
.tpl-guest-card .text-brand-primary { color: var(--tpl-primary-ink) !important; }
.tpl-guest-card .border-brand-primary { border-color: var(--tpl-primary) !important; }
.tpl-guest-card .ring-brand-primary { --tw-ring-color: var(--tpl-primary-focus) !important; }
.tpl-guest-card [class*="shadow-brand-primary"], .tpl-guest-card .shadow-xl, .tpl-guest-card .hover\:shadow-xl:hover { box-shadow: var(--tpl-shadow-2) !important; }
.tpl-guest-card .text-emerald-600 { color: var(--tpl-green) !important; }
.tpl-guest-card .bg-white { background-color: var(--tpl-surface) !important; }
.tpl-guest-card .bg-gray-100 { background-color: var(--tpl-border) !important; }

.tpl-guest-card a { color: var(--tpl-primary-ink) !important; font-weight: 600 !important; border-bottom: 0 !important; }
.tpl-guest-card a:hover { text-decoration: underline; text-underline-offset: 2px; }

.tpl-guest-card .text-red-600, .tpl-guest-card .text-red-500, .tpl-guest-card .text-red-700 { color: var(--tpl-red) !important; font-size: var(--tpl-fs-label) !important; }
.tpl-guest-card .text-green-600 { color: var(--tpl-green) !important; }
.tpl-guest-card [class*="bg-red-50"] { background: var(--tpl-red-soft) !important; border-color: var(--tpl-red-border) !important; color: var(--tpl-red) !important; }
.tpl-guest-card [class*="bg-green-50"] { background: var(--tpl-green-soft) !important; border-color: var(--tpl-green-border) !important; color: var(--tpl-green) !important; }
.tpl-guest-card [class*="bg-gray-50"] { background: var(--tpl-bg-soft) !important; }
.tpl-guest-card [class*="border-gray-"] { border-color: var(--tpl-border) !important; }
.tpl-guest-card [class*="rounded-2xl"], .tpl-guest-card [class*="rounded-3xl"] { border-radius: var(--tpl-radius) !important; }
.tpl-guest-card [class*="rounded-xl"] { border-radius: var(--tpl-radius-sm) !important; }

/* ── Error pages (errors/minimal.blade.php) ── */
.tpl-error {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 20px;
    text-align: center;
}
.tpl-error-top { position: fixed; top: 16px; right: 16px; }
.tpl-error-logo { max-height: 48px; max-width: 200px; object-fit: contain; margin-bottom: 28px; }
.tpl-error-icon {
    width: 56px; height: 56px; margin: 0 auto 18px;
    border-radius: var(--tpl-radius);
    border: 1px solid var(--tpl-border); background: var(--tpl-surface); box-shadow: var(--tpl-shadow-1);
    color: var(--tpl-text-label);
    display: flex; align-items: center; justify-content: center;
}
.tpl-error-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.tpl-error-code {
    font-family: var(--tpl-font-heading);
    font-size: clamp(4rem, 3rem + 5vw, 7rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.04em;
    color: var(--tpl-border-strong);
    margin-bottom: 8px;
    font-variant-numeric: tabular-nums;
}
.tpl-error-kicker { font-family: var(--tpl-font-mono); font-size: var(--tpl-fs-label); color: var(--tpl-text-3); letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
.tpl-error h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 700; letter-spacing: -.025em; margin: 0 0 10px; }
.tpl-error p { max-width: 480px; margin: 0 auto; color: var(--tpl-text-3); font-size: 15px; }
.tpl-error-badge { display: inline-block; margin: 0 0 14px; }
.tpl-error-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.tpl-error-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 44px; padding: 0 20px; border-radius: var(--tpl-radius-sm);
    font-size: 15px; font-weight: 650; text-decoration: none !important; cursor: pointer;
    border: 1px solid transparent; font-family: inherit;
}
.tpl-error-btn.is-primary { background: var(--tpl-primary); color: var(--tpl-on-primary) !important; box-shadow: var(--tpl-shadow-1); }
.tpl-error-btn.is-primary:hover { background: var(--tpl-primary-hover); }
.tpl-error-btn.is-secondary { background: var(--tpl-surface); color: var(--tpl-text-2) !important; border-color: var(--tpl-border-strong); }
.tpl-error-btn.is-secondary:hover { background: var(--tpl-hover); color: var(--tpl-text) !important; }
.tpl-error-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tpl-error-note { margin-top: 18px; font-size: var(--tpl-fs-label); color: var(--tpl-text-3); }
.tpl-error-foot { position: fixed; bottom: 16px; left: 0; right: 0; text-align: center; font-size: var(--tpl-fs-sm); color: var(--tpl-text-3); }
@media (max-width: 575.98px) {
    .tpl-error-actions { flex-direction: column; width: 100%; max-width: 320px; margin-left: auto; margin-right: auto; }
    .tpl-error-foot { position: static; margin-top: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    .tpl-auth-page *, .tpl-auth-page *::before, .tpl-auth-page *::after { transition: none !important; animation: none !important; }
}
