/* TableFox restaurant authentication
   Kept separate from app.css so these public pages cannot affect the workspace. */

:root {
    --auth-navy: #191f3d;
    --auth-navy-deep: #10152d;
    --auth-orange: #d5672a;
    --auth-orange-dark: #b95620;
    --auth-ink: #1b2237;
    --auth-muted: #667085;
    --auth-border: #dfe3eb;
    --auth-surface: #fff;
    --auth-canvas: #f5f3ef;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

.restaurant-auth-page {
    margin: 0;
    background:
        radial-gradient(circle at 8% 12%, rgba(213, 103, 42, 0.09), transparent 27rem),
        radial-gradient(circle at 92% 88%, rgba(25, 31, 61, 0.07), transparent 30rem),
        var(--auth-canvas);
    color: var(--auth-ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

.restaurant-auth-shell {
    width: min(1040px, calc(100% - 48px));
    min-height: min(680px, calc(100vh - 64px));
    margin: 32px auto;
    display: grid;
    grid-template-columns: minmax(350px, 0.88fr) minmax(440px, 1.12fr);
    overflow: hidden;
    border: 1px solid rgba(25, 31, 61, 0.09);
    border-radius: 24px;
    background: var(--auth-surface);
    box-shadow: 0 24px 70px rgba(25, 31, 61, 0.13);
}

.restaurant-auth-brand {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    padding: 46px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.035), transparent 42%),
        linear-gradient(155deg, var(--auth-navy) 0%, var(--auth-navy-deep) 100%);
    color: #fff;
}

.restaurant-auth-brand::before,
.restaurant-auth-brand::after {
    position: absolute;
    z-index: -1;
    content: "";
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 50%;
}

.restaurant-auth-brand::before {
    width: 330px;
    height: 330px;
    right: -180px;
    top: 115px;
    box-shadow:
        0 0 0 45px rgba(255, 255, 255, 0.022),
        0 0 0 90px rgba(255, 255, 255, 0.016);
}

.restaurant-auth-brand::after {
    width: 230px;
    height: 230px;
    left: -135px;
    bottom: -80px;
    border-color: rgba(213, 103, 42, 0.32);
    background: rgba(213, 103, 42, 0.08);
}

.restaurant-auth-brand-logo {
    width: 156px;
    height: auto;
}

.restaurant-auth-brand-copy {
    margin: auto 0;
    padding: 72px 0;
}

.restaurant-auth-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    color: #f2a77e;
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.restaurant-auth-kicker::before {
    width: 22px;
    height: 2px;
    content: "";
    border-radius: 999px;
    background: currentColor;
}

.restaurant-auth-brand h2 {
    max-width: 310px;
    margin: 0 0 18px;
    color: #fff;
    font-size: clamp(2rem, 3.5vw, 2.8rem);
    font-weight: 720;
    letter-spacing: -0.045em;
    line-height: 1.06;
}

.restaurant-auth-brand-copy p {
    max-width: 310px;
    margin: 0;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.98rem;
    line-height: 1.7;
}

.restaurant-auth-form-pane {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 52px clamp(42px, 6vw, 78px);
}

.restaurant-auth-form {
    width: 100%;
    max-width: 390px;
}

.restaurant-auth-mobile-logo {
    display: none;
}

.restaurant-auth-heading {
    margin-bottom: 30px;
}

.restaurant-auth-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: var(--auth-orange-dark);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.105em;
    text-transform: uppercase;
}

.restaurant-auth-heading h1 {
    margin: 0 0 10px;
    color: var(--auth-ink);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 720;
    letter-spacing: -0.04em;
    line-height: 1.12;
}

.restaurant-auth-heading p {
    max-width: 355px;
    margin: 0;
    color: var(--auth-muted);
    font-size: 0.94rem;
    line-height: 1.6;
}

.restaurant-auth-form .form-label {
    margin-bottom: 7px;
    color: #30384c;
    font-size: 0.8rem;
    font-weight: 680;
}

.restaurant-auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.restaurant-auth-label-row a,
.restaurant-auth-back {
    color: #4c5775;
    font-size: 0.78rem;
    font-weight: 650;
    text-decoration: none;
}

.restaurant-auth-label-row a:hover,
.restaurant-auth-back:hover {
    color: var(--auth-orange-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.restaurant-auth-form .form-control {
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--auth-border);
    border-radius: 10px;
    background: #fff;
    color: var(--auth-ink);
    font-size: 0.94rem;
    box-shadow: 0 1px 2px rgba(16, 21, 45, 0.025);
}

.restaurant-auth-form .form-control:hover {
    border-color: #c7ccd7;
}

.restaurant-auth-form .form-control:focus {
    border-color: var(--auth-orange);
    box-shadow: 0 0 0 4px rgba(213, 103, 42, 0.12);
}

.restaurant-auth-password {
    position: relative;
}

.restaurant-auth-password .form-control {
    padding-right: 48px;
}

.restaurant-auth-password-toggle {
    position: absolute;
    top: 50%;
    right: 7px;
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #7a8397;
}

.restaurant-auth-password-toggle:hover {
    background: #f3f4f7;
    color: var(--auth-navy);
}

.restaurant-auth-password-toggle:focus-visible {
    outline: 3px solid rgba(213, 103, 42, 0.24);
    outline-offset: 1px;
}

.restaurant-auth-submit {
    width: 100%;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 11px 18px;
    border: 1px solid var(--auth-navy);
    border-radius: 10px;
    background: var(--auth-navy);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 690;
    transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.restaurant-auth-submit:hover:not(:disabled),
.restaurant-auth-submit:focus-visible:not(:disabled) {
    border-color: #0d1125;
    background: #0d1125;
    color: #fff;
    box-shadow: 0 8px 20px rgba(25, 31, 61, 0.19);
}

.restaurant-auth-submit:focus-visible {
    outline: 3px solid rgba(213, 103, 42, 0.28);
    outline-offset: 2px;
}

.restaurant-auth-submit:disabled {
    cursor: not-allowed;
    border-color: #aeb3c0;
    background: #aeb3c0;
    color: #fff;
    opacity: 1;
}

.restaurant-auth-alert {
    position: relative;
    margin-bottom: 22px;
    padding: 12px 42px 12px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    font-size: 0.82rem;
    line-height: 1.45;
}

.restaurant-auth-alert.alert-danger {
    border-color: #f1c8cd;
    background: #fff3f4;
    color: #8f2634;
}

.restaurant-auth-alert.alert-success {
    border-color: #bfe3d6;
    background: #effaf6;
    color: #17624f;
}

.restaurant-auth-alert.alert-info {
    border-color: #c5dfeb;
    background: #f0f8fb;
    color: #205f78;
}

.restaurant-auth-alert .btn-close {
    top: 50%;
    right: 9px;
    padding: 8px;
    transform: translateY(-50%);
    font-size: 0.7rem;
}

.restaurant-auth-turnstile {
    min-height: 67px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 21px 0;
}

.restaurant-auth-turnstile .cf-turnstile {
    width: 100%;
}

.restaurant-auth-meta {
    margin-top: 24px;
    color: #8a92a3;
    font-size: 0.73rem;
    text-align: center;
}

.restaurant-auth-back-wrap {
    margin-top: 22px;
    text-align: center;
}

.restaurant-auth-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 36px;
}

.restaurant-auth-help {
    margin: -8px 0 22px;
    padding: 12px 14px;
    border-left: 3px solid rgba(213, 103, 42, 0.58);
    border-radius: 0 8px 8px 0;
    background: #faf8f5;
    color: var(--auth-muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

@media (max-width: 820px) {
    .restaurant-auth-page {
        background: var(--auth-canvas);
    }

    .restaurant-auth-shell {
        width: min(540px, calc(100% - 32px));
        min-height: auto;
        display: block;
        margin: 28px auto;
        border-radius: 20px;
    }

    .restaurant-auth-brand {
        display: none;
    }

    .restaurant-auth-form-pane {
        padding: 44px clamp(28px, 8vw, 52px);
    }

    .restaurant-auth-mobile-logo {
        width: 140px;
        display: block;
        margin-bottom: 42px;
    }
}

@media (max-width: 480px) {
    .restaurant-auth-page {
        background: #fff;
    }

    .restaurant-auth-shell {
        width: 100%;
        min-height: 100vh;
        margin: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }

    .restaurant-auth-form-pane {
        align-items: flex-start;
        min-height: 100vh;
        padding: max(30px, env(safe-area-inset-top)) 22px max(28px, env(safe-area-inset-bottom));
    }

    .restaurant-auth-mobile-logo {
        width: 126px;
        margin-bottom: 38px;
    }

    .restaurant-auth-heading {
        margin-bottom: 26px;
    }

    .restaurant-auth-heading h1 {
        font-size: 1.85rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .restaurant-auth-submit,
    .restaurant-auth-form .form-control {
        transition: none;
    }
}
