:root {
    --ra-auth-bg: #f6f1ea;
    --ra-auth-ink: #1f2523;
    --ra-auth-muted: #68716d;
    --ra-auth-surface: #fffdf9;
    --ra-auth-raised: #ffffff;
    --ra-auth-border: rgba(31, 37, 35, 0.12);
    --ra-auth-accent: #e65f4d;
    --ra-auth-success: #2e7d56;
    --ra-auth-warning: #b7832f;
    --ra-auth-danger: #c9483e;
    --ra-auth-info: #376f9f;
    --ra-auth-ai: #7b4fa3;
}

body.auth-layout {
    background: var(--ra-auth-bg);
    color: var(--ra-auth-ink);
}

html:has(.ra-auth[data-auth-page="login"]),
body.auth-layout:has(.ra-auth[data-auth-page="login"]) {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ra-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1.18fr) minmax(420px, 0.82fr);
    background:
        linear-gradient(90deg, rgba(31, 37, 35, 0.04) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 37, 35, 0.035) 1px, transparent 1px),
        var(--ra-auth-bg);
    background-size: 42px 42px;
}

.ra-auth[data-auth-page="login"] {
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
}

.ra-auth__visual {
    position: relative;
    overflow: hidden;
    padding: 42px;
    min-height: 100vh;
    color: #fffdf9;
    background:
        linear-gradient(135deg, rgba(31, 37, 35, 0.98), rgba(32, 45, 39, 0.95)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
}

.ra-auth[data-auth-page="login"] .ra-auth__visual {
    min-height: 0;
    height: 100dvh;
    padding: clamp(22px, 2.5vw, 34px);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    gap: clamp(18px, 2vw, 26px);
}

.ra-auth__visual::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(230, 95, 77, 0.14), transparent 28%),
        linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
    pointer-events: none;
}

.ra-auth-brand,
.ra-auth-hero,
.ra-auth-orbit,
.ra-auth-footer {
    position: relative;
    z-index: 1;
}

.ra-auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.ra-auth-brand__logo,
.ra-auth-mobile-brand img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.ra-auth-brand strong,
.ra-auth-mobile-brand strong {
    display: block;
    font-size: 14px;
    line-height: 1.2;
}

.ra-auth-brand span,
.ra-auth-mobile-brand span {
    display: block;
    max-width: 280px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12px;
    line-height: 1.35;
}

.ra-auth-hero {
    max-width: 680px;
    margin-top: 70px;
}

.ra-auth[data-auth-page="login"] .ra-auth-hero {
    max-width: 620px;
    margin-top: 0;
}

.ra-auth-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffd3c8;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.ra-auth-hero__eyebrow::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--ra-auth-accent);
    box-shadow: 0 0 0 5px rgba(230, 95, 77, 0.2);
}

.ra-auth-hero h1 {
    max-width: 660px;
    margin: 18px 0 0;
    color: #fffdf9;
    font-size: 48px;
    line-height: 1.04;
    font-weight: 850;
    letter-spacing: 0;
}

.ra-auth[data-auth-page="login"] .ra-auth-hero h1 {
    max-width: 600px;
    margin-top: 14px;
    font-size: clamp(32px, 4.2vw, 52px);
    line-height: 1.02;
}

.ra-auth-hero p {
    max-width: 560px;
    margin: 18px 0 0;
    color: rgba(255, 253, 249, 0.72);
    font-size: 16px;
    line-height: 1.7;
}

.ra-auth[data-auth-page="login"] .ra-auth-hero p {
    max-width: 540px;
    margin-top: 12px;
    font-size: 15px;
    line-height: 1.55;
}

.ra-auth-orbit {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 170px;
    gap: 18px;
    align-items: start;
    max-width: 780px;
    margin-top: 46px;
}

.ra-auth[data-auth-page="login"] .ra-auth-orbit {
    align-self: center;
    max-width: 740px;
    margin-top: 0;
    grid-template-columns: minmax(0, 1fr) 150px;
    gap: 14px;
}

.ra-auth-dashboard,
.ra-auth-kds,
.ra-auth-receipt {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.09);
    border-radius: 8px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(18px);
}

.ra-auth-dashboard {
    padding: 16px;
    animation: ra-auth-rise 700ms ease both;
}

.ra-auth[data-auth-page="login"] .ra-auth-dashboard {
    padding: 14px;
}

.ra-auth-dashboard__top {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.ra-auth-dashboard__top span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
}

.ra-auth-dashboard__top strong {
    margin-left: auto;
    color: rgba(255, 253, 249, 0.82);
    font-size: 12px;
}

.ra-auth-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.ra-auth-metrics div {
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
}

.ra-auth[data-auth-page="login"] .ra-auth-metrics div {
    padding: 10px;
}

.ra-auth-metrics b {
    display: block;
    color: #fff;
    font-size: 22px;
    line-height: 1;
}

.ra-auth[data-auth-page="login"] .ra-auth-metrics b {
    font-size: 20px;
}

.ra-auth-metrics span {
    display: block;
    margin-top: 6px;
    color: rgba(255, 253, 249, 0.62);
    font-size: 12px;
}

.ra-auth-map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
    padding: 14px;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        rgba(255, 255, 255, 0.06);
    background-size: 24px 24px;
}

.ra-auth[data-auth-page="login"] .ra-auth-map {
    gap: 8px;
    margin-top: 12px;
    padding: 12px;
}

.ra-auth-table {
    min-height: 54px;
    border-radius: 8px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    position: relative;
}

.ra-auth[data-auth-page="login"] .ra-auth-table {
    min-height: clamp(34px, 4.4vw, 48px);
}

.ra-auth-table::after {
    content: "";
    position: absolute;
    inset: 10px;
    border-radius: 6px;
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.ra-auth-table--available { border-color: rgba(73, 171, 119, 0.8); }
.ra-auth-table--occupied { border-color: rgba(230, 95, 77, 0.9); animation: ra-auth-pulse 1.8s ease-in-out infinite; }
.ra-auth-table--billing { border-color: rgba(65, 132, 185, 0.9); }
.ra-auth-table--dirty { border-color: rgba(192, 143, 58, 0.9); }
.ra-auth-table--ordered { border-color: rgba(123, 79, 163, 0.85); }
.ra-auth-table--reserved { border-color: rgba(255, 211, 139, 0.9); }

.ra-auth-tickets {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ra-auth-tickets span,
.ra-auth-footer span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 253, 249, 0.78);
    font-size: 12px;
    font-weight: 700;
}

.ra-auth-kds {
    padding: 14px;
    animation: ra-auth-rise 700ms 90ms ease both;
}

.ra-auth[data-auth-page="login"] .ra-auth-kds {
    padding: 12px;
}

.ra-auth-kds strong,
.ra-auth-receipt span {
    display: block;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
}

.ra-auth-kds span {
    display: block;
    margin-top: 10px;
    padding: 9px 10px;
    border-left: 4px solid var(--ra-auth-accent);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 253, 249, 0.75);
    font-size: 12px;
}

.ra-auth-receipt {
    grid-column: 2;
    padding: 14px;
    animation: ra-auth-slide 800ms 160ms ease both;
}

.ra-auth[data-auth-page="login"] .ra-auth-receipt {
    padding: 12px;
}

.ra-auth-receipt b {
    display: block;
    margin-top: 8px;
    color: #fff;
    font-size: 24px;
}

.ra-auth-receipt em {
    display: block;
    margin-top: 8px;
    color: rgba(255, 253, 249, 0.64);
    font-size: 12px;
    font-style: normal;
}

.ra-auth-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 40px;
}

.ra-auth[data-auth-page="login"] .ra-auth-footer {
    margin-top: 0;
}

.ra-auth__panel-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.ra-auth[data-auth-page="login"] .ra-auth__panel-wrap {
    min-height: 0;
    height: 100dvh;
    overflow: hidden;
    padding: clamp(18px, 2.4vw, 28px);
}

.ra-auth-panel {
    width: 100%;
    max-width: 500px;
    padding: 30px;
    border: 1px solid var(--ra-auth-border);
    border-radius: 8px;
    background: rgba(255, 253, 249, 0.94);
    box-shadow: 0 24px 80px rgba(31, 37, 35, 0.14);
    animation: ra-auth-rise 620ms ease both;
}

.ra-auth[data-auth-page="login"] .ra-auth-panel {
    max-width: 470px;
    max-height: calc(100dvh - 36px);
    overflow: hidden;
    padding: clamp(22px, 2.6vw, 28px);
}

.ra-auth-panel__toolbar {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-bottom: 22px;
}

.ra-auth[data-auth-page="login"] .ra-auth-panel__toolbar {
    margin-bottom: 16px;
}

.ra-auth-home,
.ra-auth-theme {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid var(--ra-auth-border);
    background: #fff;
    color: var(--ra-auth-ink);
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.ra-auth-theme {
    appearance: none;
}

.ra-auth-home:hover,
.ra-auth-theme:hover {
    transform: translateY(-1px);
    border-color: rgba(230, 95, 77, 0.38);
    box-shadow: 0 12px 28px rgba(31, 37, 35, 0.1);
}

.ra-auth-mobile-brand {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.ra-auth-mobile-brand span {
    color: var(--ra-auth-muted);
}

.ra-auth-heading {
    margin-bottom: 22px;
}

.ra-auth[data-auth-page="login"] .ra-auth-heading {
    margin-bottom: 16px;
}

.ra-auth-dot {
    width: 12px;
    height: 12px;
    display: inline-block;
    border-radius: 50%;
    background: var(--ra-auth-accent);
    box-shadow: 0 0 0 6px rgba(230, 95, 77, 0.12);
}

.ra-auth-dot--warning { background: var(--ra-auth-warning); box-shadow: 0 0 0 6px rgba(183, 131, 47, 0.16); }
.ra-auth-dot--danger { background: var(--ra-auth-danger); box-shadow: 0 0 0 6px rgba(201, 72, 62, 0.14); }
.ra-auth-dot--success { background: var(--ra-auth-success); box-shadow: 0 0 0 6px rgba(46, 125, 86, 0.14); }
.ra-auth-dot--ai { background: var(--ra-auth-ai); box-shadow: 0 0 0 6px rgba(123, 79, 163, 0.14); }

.ra-auth-heading h2,
.auth-title {
    margin: 12px 0 0;
    color: var(--ra-auth-ink);
    font-size: 34px;
    line-height: 1.12;
    font-weight: 850;
    letter-spacing: 0;
}

.ra-auth[data-auth-page="login"] .ra-auth-heading h2 {
    font-size: clamp(28px, 3vw, 36px);
}

.ra-auth-heading p,
.auth-subtitle {
    margin: 10px 0 0;
    color: var(--ra-auth-muted);
    font-size: 14px;
    line-height: 1.6;
}

.auth-field {
    margin-top: 18px;
}

.ra-auth[data-auth-page="login"] .auth-field {
    margin-top: 14px;
}

.auth-field label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--ra-auth-ink);
    font-size: 13px;
    font-weight: 800;
}

.auth-input,
.otp-box {
    width: 100%;
    min-height: 50px;
    border-radius: 8px;
    border: 1px solid var(--ra-auth-border);
    background: #fff;
    color: var(--ra-auth-ink);
    font-size: 14px;
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ra-auth[data-auth-page="login"] .auth-input {
    min-height: 46px;
}

.auth-input {
    padding: 0 14px;
}

.auth-input:focus,
.otp-box:focus {
    outline: none;
    border-color: rgba(230, 95, 77, 0.72);
    box-shadow: 0 0 0 4px rgba(230, 95, 77, 0.14);
}

.auth-row,
.otp-meta,
.lock-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.ra-auth[data-auth-page="login"] .auth-row {
    margin-top: 14px;
}

.auth-switch {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ra-auth-muted);
    font-size: 13px;
    font-weight: 700;
}

.auth-switch input {
    width: 18px;
    height: 18px;
    accent-color: var(--ra-auth-accent);
}

.auth-link,
.auth-backlink {
    color: var(--ra-auth-accent);
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

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

.auth-button {
    width: 100%;
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, #e65f4d, #b94337);
    color: #fff;
    font-weight: 850;
    text-decoration: none;
    transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.ra-auth[data-auth-page="login"] .auth-button {
    min-height: 48px;
    margin-top: 16px;
}

.auth-button:hover {
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(185, 67, 55, 0.24);
}

.auth-button--outline {
    background: transparent;
    border: 1px solid var(--ra-auth-border);
    color: var(--ra-auth-ink);
}

.auth-button--outline:hover {
    color: var(--ra-auth-ink);
    box-shadow: 0 12px 26px rgba(31, 37, 35, 0.08);
}

.auth-button--dark {
    background: linear-gradient(135deg, #2b332f, #171c1a);
}

.auth-terms,
.auth-meta,
.auth-hint,
.auth-error {
    margin-top: 14px;
    color: var(--ra-auth-muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.ra-auth[data-auth-page="login"] .auth-terms,
.ra-auth[data-auth-page="login"] .auth-meta {
    margin-top: 12px;
}

.auth-hint,
.auth-error {
    text-align: left;
}

.auth-error {
    color: var(--ra-auth-danger);
    font-weight: 700;
}

.auth-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 8px;
    margin: 14px 0 18px;
    border: 1px solid transparent;
    font-size: 14px;
    line-height: 1.45;
}

.auth-alert--success {
    background: rgba(46, 125, 86, 0.1);
    border-color: rgba(46, 125, 86, 0.22);
    color: #1e6847;
}

.auth-alert--danger {
    background: rgba(201, 72, 62, 0.1);
    border-color: rgba(201, 72, 62, 0.22);
    color: #9f342c;
}

.auth-alert__icon {
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: currentColor;
    color: #fff;
    font-weight: 900;
}

.auth-alert__text {
    min-width: 0;
    color: inherit;
    font-weight: 700;
}

.auth-alert__close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: inherit;
    opacity: 0.7;
}

.auth-info,
.warn-panel,
.danger-panel,
.lock-panel {
    margin: 18px 0;
    padding: 16px;
    border-radius: 8px;
    border: 1px solid var(--ra-auth-border);
    background:
        linear-gradient(90deg, rgba(230, 95, 77, 0.07), transparent),
        #fff;
}

.danger-panel {
    background:
        linear-gradient(90deg, rgba(201, 72, 62, 0.08), transparent),
        #fff;
}

.warn-panel {
    background:
        linear-gradient(90deg, rgba(183, 131, 47, 0.1), transparent),
        #fff;
}

.auth-info__text,
.warn-panel__text,
.danger-panel__text,
.warn-panel__chip,
.danger-panel__chip,
.lock-row {
    color: var(--ra-auth-muted);
    font-size: 13px;
    line-height: 1.55;
}

.lock-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.lock-chip {
    color: var(--ra-auth-ink);
    font-weight: 800;
}

.lock-panel__top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.lock-panel__time {
    color: var(--ra-auth-warning);
    font-size: 28px;
    font-weight: 900;
}

.lock-progress {
    height: 8px;
    overflow: hidden;
    margin-top: 12px;
    border-radius: 999px;
    background: rgba(31, 37, 35, 0.09);
}

.lock-progress__bar {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--ra-auth-warning), var(--ra-auth-accent));
    transition: width 300ms ease;
}

.otp-wrap {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
}

.otp-box {
    padding: 0;
    text-align: center;
    font-size: 22px;
    font-weight: 900;
}

.auth-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--ra-auth-border);
    background: rgba(31, 37, 35, 0.04);
}

.auth-tab {
    min-height: 42px;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--ra-auth-muted);
    font-size: 13px;
    font-weight: 850;
}

.auth-tab.is-active,
.auth-tab.active {
    background: #fff;
    color: var(--ra-auth-ink);
    box-shadow: 0 8px 20px rgba(31, 37, 35, 0.08);
}

html[data-bs-theme="dark"] body.auth-layout {
    background: #111614;
}

html[data-bs-theme="dark"] .ra-auth {
    --ra-auth-bg: #111614;
    --ra-auth-ink: #f8f4ee;
    --ra-auth-muted: #aeb8b2;
    --ra-auth-surface: #181f1c;
    --ra-auth-raised: #1d2521;
    --ra-auth-border: rgba(255, 253, 249, 0.14);
    background-color: #111614;
}

html[data-bs-theme="dark"] .ra-auth-panel,
html[data-bs-theme="dark"] .auth-input,
html[data-bs-theme="dark"] .otp-box,
html[data-bs-theme="dark"] .auth-info,
html[data-bs-theme="dark"] .warn-panel,
html[data-bs-theme="dark"] .danger-panel,
html[data-bs-theme="dark"] .lock-panel,
html[data-bs-theme="dark"] .ra-auth-home,
html[data-bs-theme="dark"] .ra-auth-theme,
html[data-bs-theme="dark"] .auth-tab.is-active,
html[data-bs-theme="dark"] .auth-tab.active {
    background: var(--ra-auth-raised);
}

html[data-bs-theme="dark"] .ra-auth-panel {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

html[data-bs-theme="dark"] .auth-alert--success {
    color: #c7f4da;
}

html[data-bs-theme="dark"] .auth-alert--danger {
    color: #ffd2cc;
}

@keyframes ra-auth-rise {
    from {
        opacity: 0;
        transform: translateY(18px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ra-auth-slide {
    from {
        opacity: 0;
        transform: translateX(18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes ra-auth-pulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(230, 95, 77, 0.28);
    }
    50% {
        box-shadow: 0 0 0 8px rgba(230, 95, 77, 0);
    }
}

@media (max-width: 1100px) {
    .ra-auth {
        grid-template-columns: 1fr;
    }

    .ra-auth__visual {
        display: none;
    }

    .ra-auth__panel-wrap {
        min-height: 100vh;
        padding: 24px;
    }

    .ra-auth-mobile-brand {
        display: flex;
    }

    .ra-auth[data-auth-page="login"] {
        grid-template-columns: 1fr;
    }

    .ra-auth[data-auth-page="login"] .ra-auth__panel-wrap {
        min-height: 100dvh;
        height: 100dvh;
    }

    .ra-auth[data-auth-page="login"] .ra-auth-panel {
        max-width: 520px;
    }
}

@media (max-width: 560px) {
    .ra-auth__panel-wrap {
        padding: 16px;
    }

    .ra-auth-panel {
        padding: 22px;
    }

    .ra-auth[data-auth-page="login"] .ra-auth__panel-wrap {
        padding: 12px;
    }

    .ra-auth[data-auth-page="login"] .ra-auth-panel {
        max-height: calc(100dvh - 24px);
        padding: 18px;
    }

    .ra-auth[data-auth-page="login"] .ra-auth-panel__toolbar {
        margin-bottom: 10px;
    }

    .ra-auth-heading h2,
    .auth-title {
        font-size: 28px;
    }

    .ra-auth[data-auth-page="login"] .ra-auth-heading h2 {
        font-size: 25px;
    }

    .ra-auth[data-auth-page="login"] .ra-auth-heading p {
        font-size: 13px;
        line-height: 1.45;
    }

    .auth-row,
    .otp-meta,
    .lock-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .ra-auth[data-auth-page="login"] .auth-row {
        gap: 8px;
    }

    .otp-wrap {
        gap: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.001ms !important;
    }
}

/* Compact RestroAI command access redesign. */
.ra-auth[data-auth-page="login"] {
    grid-template-columns: minmax(320px, 0.82fr) minmax(390px, 0.72fr);
    background:
        linear-gradient(90deg, rgba(31, 37, 35, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 37, 35, 0.035) 1px, transparent 1px),
        #f7f3ec;
    background-size: 38px 38px;
}

.ra-auth[data-auth-page="login"] .ra-auth__visual {
    padding: clamp(18px, 2vw, 28px);
    color: var(--ra-auth-ink);
    background:
        linear-gradient(90deg, rgba(230, 95, 77, 0.08), transparent 32%),
        #fffdf9;
    border-right: 1px solid var(--ra-auth-border);
}

.ra-auth[data-auth-page="login"] .ra-auth__visual::before {
    background:
        linear-gradient(90deg, rgba(31, 37, 35, 0.045) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 37, 35, 0.035) 1px, transparent 1px);
    background-size: 26px 26px;
    opacity: 0.75;
}

.ra-auth[data-auth-page="login"] .ra-auth-brand {
    width: min(420px, 100%);
    background: #fff;
    border-color: var(--ra-auth-border);
    box-shadow: 0 12px 30px rgba(31, 37, 35, 0.07);
}

.ra-auth[data-auth-page="login"] .ra-auth-brand strong,
.ra-auth[data-auth-page="login"] .ra-auth-kds strong,
.ra-auth[data-auth-page="login"] .ra-auth-receipt span,
.ra-auth[data-auth-page="login"] .ra-auth-metrics b,
.ra-auth[data-auth-page="login"] .ra-auth-hero h1 {
    color: var(--ra-auth-ink);
}

.ra-auth[data-auth-page="login"] .ra-auth-brand span,
.ra-auth[data-auth-page="login"] .ra-auth-hero p,
.ra-auth[data-auth-page="login"] .ra-auth-kds span,
.ra-auth[data-auth-page="login"] .ra-auth-receipt em,
.ra-auth[data-auth-page="login"] .ra-auth-metrics span,
.ra-auth[data-auth-page="login"] .ra-auth-dashboard__top strong,
.ra-auth[data-auth-page="login"] .ra-auth-tickets span,
.ra-auth[data-auth-page="login"] .ra-auth-footer span {
    color: var(--ra-auth-muted);
}

.ra-auth[data-auth-page="login"] .ra-auth-hero {
    max-width: 430px;
}

.ra-auth[data-auth-page="login"] .ra-auth-hero__eyebrow {
    border-color: rgba(230, 95, 77, 0.22);
    background: rgba(230, 95, 77, 0.08);
    color: #9f3b31;
}

.ra-auth[data-auth-page="login"] .ra-auth-hero h1 {
    max-width: 420px;
    font-size: clamp(28px, 3.2vw, 40px);
    line-height: 1.08;
}

.ra-auth[data-auth-page="login"] .ra-auth-orbit {
    align-self: stretch;
    max-width: 520px;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
}

.ra-auth[data-auth-page="login"] .ra-auth-dashboard,
.ra-auth[data-auth-page="login"] .ra-auth-kds,
.ra-auth[data-auth-page="login"] .ra-auth-receipt {
    border-color: var(--ra-auth-border);
    background: #fff;
    box-shadow: 0 14px 34px rgba(31, 37, 35, 0.08);
    backdrop-filter: none;
}

.ra-auth[data-auth-page="login"] .ra-auth-dashboard {
    padding: 12px;
}

.ra-auth[data-auth-page="login"] .ra-auth-metrics {
    gap: 8px;
}

.ra-auth[data-auth-page="login"] .ra-auth-metrics div {
    padding: 9px;
    background: rgba(31, 37, 35, 0.045);
}

.ra-auth[data-auth-page="login"] .ra-auth-map {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 7px;
    padding: 10px;
    background:
        linear-gradient(90deg, rgba(31, 37, 35, 0.06) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 37, 35, 0.05) 1px, transparent 1px),
        #fffaf4;
    background-size: 20px 20px;
}

.ra-auth[data-auth-page="login"] .ra-auth-table {
    min-height: clamp(28px, 3.1vw, 38px);
    background: rgba(31, 37, 35, 0.035);
}

.ra-auth[data-auth-page="login"] .ra-auth-table::after {
    inset: 8px;
    border-color: rgba(31, 37, 35, 0.12);
}

.ra-auth[data-auth-page="login"] .ra-auth-kds,
.ra-auth[data-auth-page="login"] .ra-auth-receipt {
    display: none;
}

.ra-auth[data-auth-page="login"] .ra-auth-tickets,
.ra-auth[data-auth-page="login"] .ra-auth-footer {
    gap: 7px;
}

.ra-auth[data-auth-page="login"] .ra-auth-tickets span,
.ra-auth[data-auth-page="login"] .ra-auth-footer span {
    padding: 7px 9px;
    background: #fff;
    border: 1px solid var(--ra-auth-border);
}

.ra-auth[data-auth-page="login"] .ra-auth__panel-wrap {
    padding: clamp(14px, 2vw, 24px);
}

.ra-auth[data-auth-page="login"] .ra-auth-panel {
    max-width: 430px;
    padding: clamp(18px, 2.2vw, 24px);
    box-shadow: 0 18px 46px rgba(31, 37, 35, 0.1);
}

.ra-auth[data-auth-page="login"] .ra-auth-heading h2 {
    font-size: clamp(27px, 2.55vw, 34px);
}

.ra-auth[data-auth-page="login"] .ra-auth-heading p {
    line-height: 1.48;
}

@media (max-width: 1180px) {
    .ra-auth[data-auth-page="login"] {
        grid-template-columns: minmax(0, 0.78fr) minmax(380px, 0.74fr);
    }
}

@media (max-width: 980px) {
    .ra-auth[data-auth-page="login"] .ra-auth__visual {
        display: none;
    }

    .ra-auth[data-auth-page="login"] {
        grid-template-columns: 1fr;
    }
}

/* RestroPilot Live Ops login. */
html:has(.ra-auth[data-auth-page="login"]),
body.auth-layout:has(.ra-auth[data-auth-page="login"]) {
    min-height: 100%;
    overflow: auto;
}

.ra-auth[data-auth-page="login"] {
    height: auto;
    min-height: 100dvh;
    grid-template-columns: minmax(0, 1.04fr) minmax(420px, 0.82fr);
    background:
        linear-gradient(90deg, rgba(31, 37, 35, 0.05) 1px, transparent 1px),
        linear-gradient(0deg, rgba(31, 37, 35, 0.04) 1px, transparent 1px),
        #f5f0e8;
    background-size: 36px 36px;
}

.ra-auth[data-auth-page="login"] .ra-auth__visual {
    min-height: 100dvh;
    height: auto;
    color: #fdf8ef;
    background:
        linear-gradient(135deg, rgba(17, 26, 22, 0.98), rgba(30, 42, 37, 0.96)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 32px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.ra-auth[data-auth-page="login"] .ra-auth__visual::before {
    background:
        radial-gradient(circle at 24% 18%, rgba(230, 95, 77, 0.22), transparent 28%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.38));
    opacity: 1;
}

.ra-auth[data-auth-page="login"] .ra-auth-brand,
.ra-auth[data-auth-page="login"] .ra-auth-dashboard,
.ra-auth[data-auth-page="login"] .ra-auth-kds,
.ra-auth[data-auth-page="login"] .ra-auth-receipt,
.ra-auth[data-auth-page="login"] .ra-auth-tickets span,
.ra-auth[data-auth-page="login"] .ra-auth-footer span {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 253, 249, 0.82);
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(16px);
}

.ra-auth[data-auth-page="login"] .ra-auth-brand strong,
.ra-auth[data-auth-page="login"] .ra-auth-kds strong,
.ra-auth[data-auth-page="login"] .ra-auth-receipt span,
.ra-auth[data-auth-page="login"] .ra-auth-metrics b,
.ra-auth[data-auth-page="login"] .ra-auth-hero h1 {
    color: #fffdf9;
}

.ra-auth[data-auth-page="login"] .ra-auth-brand span,
.ra-auth[data-auth-page="login"] .ra-auth-hero p,
.ra-auth[data-auth-page="login"] .ra-auth-kds span,
.ra-auth[data-auth-page="login"] .ra-auth-receipt em,
.ra-auth[data-auth-page="login"] .ra-auth-metrics span,
.ra-auth[data-auth-page="login"] .ra-auth-dashboard__top strong,
.ra-auth[data-auth-page="login"] .ra-auth-tickets span,
.ra-auth[data-auth-page="login"] .ra-auth-footer span {
    color: rgba(255, 253, 249, 0.68);
}

.ra-auth[data-auth-page="login"] .ra-auth-hero {
    max-width: 640px;
}

.ra-auth[data-auth-page="login"] .ra-auth-hero__eyebrow {
    color: #ffd4c9;
    border-color: rgba(230, 95, 77, 0.28);
    background: rgba(230, 95, 77, 0.12);
}

.ra-auth[data-auth-page="login"] .ra-auth-hero h1 {
    max-width: 620px;
    font-size: clamp(34px, 4.2vw, 56px);
}

.ra-auth[data-auth-page="login"] .ra-auth-hero p {
    max-width: 580px;
}

.ra-auth[data-auth-page="login"] .ra-auth-orbit {
    max-width: 760px;
    grid-template-columns: minmax(0, 1fr) 148px;
    gap: 14px;
}

.ra-auth[data-auth-page="login"] .ra-auth-dashboard {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.06)),
        rgba(255, 255, 255, 0.08);
}

.ra-auth[data-auth-page="login"] .ra-auth-metrics div {
    background: rgba(255, 255, 255, 0.08);
}

.ra-auth[data-auth-page="login"] .ra-auth-map {
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
        linear-gradient(0deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
        rgba(255, 255, 255, 0.06);
    background-size: 20px 20px;
}

.ra-auth[data-auth-page="login"] .ra-auth-table {
    background: rgba(255, 255, 255, 0.08);
}

.ra-auth[data-auth-page="login"] .ra-auth-kds,
.ra-auth[data-auth-page="login"] .ra-auth-receipt {
    display: block;
}

.ra-auth[data-auth-page="login"] .ra-auth__panel-wrap {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    padding: clamp(18px, 2.4vw, 34px);
}

.ra-auth[data-auth-page="login"] .ra-auth-panel {
    max-width: 520px;
    max-height: none;
    overflow: visible;
    padding: clamp(20px, 2.35vw, 30px);
    background: rgba(255, 253, 249, 0.97);
    border-color: rgba(31, 37, 35, 0.1);
    box-shadow: 0 26px 70px rgba(31, 37, 35, 0.16);
}

.ra-auth[data-auth-page="login"] .ra-auth-heading h2 {
    font-size: clamp(30px, 3vw, 38px);
}

.auth-product-snapshot {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.auth-product-snapshot__item,
.auth-demo-card {
    border: 1px solid var(--ra-auth-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(31, 37, 35, 0.035), transparent),
        #ffffff;
}

.auth-product-snapshot__item {
    min-width: 0;
    padding: 10px;
}

.auth-product-snapshot__item span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ra-auth-muted);
    font-size: 11px;
    font-weight: 850;
    text-transform: uppercase;
}

.auth-product-snapshot__item strong {
    display: block;
    margin-top: 5px;
    color: var(--ra-auth-ink);
    font-size: 14px;
    line-height: 1.15;
}

.auth-demo-card {
    margin-bottom: 16px;
    padding: 14px;
    box-shadow: 0 14px 32px rgba(31, 37, 35, 0.07);
}

.auth-demo-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.auth-demo-card__head span,
.auth-demo-credential span {
    display: block;
    color: var(--ra-auth-muted);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.auth-demo-card__head strong {
    display: block;
    margin-top: 3px;
    color: var(--ra-auth-ink);
    font-size: 14px;
    line-height: 1.25;
}

.auth-demo-fill,
.auth-demo-copy {
    appearance: none;
    border: 1px solid rgba(230, 95, 77, 0.24);
    border-radius: 8px;
    background: rgba(230, 95, 77, 0.08);
    color: #a23e33;
    font-weight: 850;
}

.auth-demo-fill {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 10px;
    white-space: nowrap;
}

.auth-demo-card__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin-top: 12px;
}

.auth-demo-credential {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 34px;
    gap: 8px;
    align-items: center;
    padding: 9px 10px;
    border-radius: 8px;
    border: 1px solid rgba(31, 37, 35, 0.08);
    background: #fffaf4;
}

.auth-demo-credential code {
    display: block;
    margin-top: 2px;
    color: var(--ra-auth-ink);
    font-size: 13px;
    white-space: normal;
    word-break: break-word;
}

.auth-demo-copy {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

html[data-bs-theme="dark"] .auth-product-snapshot__item,
html[data-bs-theme="dark"] .auth-demo-card,
html[data-bs-theme="dark"] .auth-demo-credential {
    background: var(--ra-auth-raised);
}

html[data-bs-theme="dark"] .auth-demo-credential {
    border-color: var(--ra-auth-border);
}

@media (max-width: 1180px) {
    .ra-auth[data-auth-page="login"] {
        grid-template-columns: minmax(0, 0.92fr) minmax(400px, 0.86fr);
    }
}

@media (max-width: 980px) {
    .ra-auth[data-auth-page="login"] {
        grid-template-columns: 1fr;
    }

    .ra-auth[data-auth-page="login"] .ra-auth__panel-wrap {
        min-height: 100dvh;
    }
}

@media (max-width: 560px) {
    .auth-product-snapshot {
        grid-template-columns: 1fr;
    }

    .auth-demo-card__head {
        align-items: stretch;
        flex-direction: column;
    }

    .auth-demo-fill {
        width: 100%;
        justify-content: center;
    }
}
