/*
 * Admin + merchant sign-in pages (layouts/login_tpl_v2.php). Standalone: admin.css, Bootstrap and
 * the UIkit stylesheet aren't loaded here. Same look as the merchant panel v2 (merchant-v2.css):
 * Barlow, Grub24 blue #1565D8, blue new / amber preparing / green ready.
 */

:root {
    --lg-blue: #1565D8;
    --lg-blue-dark: #0B4AA8;
    --lg-blue-deep: #08306E;
    --lg-blue-soft: #E8F0FC;
    --lg-bg: #F3F5F8;
    --lg-surface: #FFFFFF;
    --lg-line: #E2E7EE;
    --lg-field: #C9D2DF;
    --lg-ink: #0F1B2D;
    --lg-ink-2: #26334A;
    --lg-muted: #5B6677;
    --lg-green: #1F8A45;
    --lg-green-ink: #146C2E;
    --lg-green-soft: #DDF3E4;
    --lg-amber-ink: #7A4A00;
    --lg-amber-soft: #FFF0D1;
    --lg-red: #B42318;
    --lg-red-soft: #FDECEA;
    --lg-radius: 10px;
    --lg-radius-lg: 16px;
    --lg-focus: 0 0 0 3px rgba(21, 101, 216, .25);
    --lg-ease: cubic-bezier(.16, 1, .3, 1);
    --lg-font: Barlow, "Open Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --lg-font-display: "Barlow Semi Condensed", Barlow, system-ui, sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body.lg-body {
    margin: 0;
    min-height: 100vh;
    background: var(--lg-surface);
    color: var(--lg-ink);
    font-family: var(--lg-font);
    font-size: 15px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.lg-body [hidden] {
    display: none !important;
}

.lg-body button {
    font: inherit;
}

.lg-icon {
    flex: none;
    display: block;
}

/* ---------- frame ---------- */

.lg-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(440px, 1fr);
    min-height: 100vh;
}

/* ---------- brand panel ---------- */

.lg-brand {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 44px clamp(32px, 5vw, 72px);
    overflow: hidden;
    color: #fff;
    background-color: var(--lg-blue-dark);
    background-image:
        radial-gradient(120% 80% at 100% 0%, rgba(84, 160, 255, .55) 0%, rgba(84, 160, 255, 0) 55%),
        radial-gradient(90% 70% at 0% 100%, rgba(4, 22, 58, .65) 0%, rgba(4, 22, 58, 0) 60%),
        linear-gradient(160deg, #1565D8 0%, #0B4AA8 55%, #08306E 100%);
    background-size: cover;
    background-position: center;
}

/* faint grid so the blue isn't a flat slab */
.lg-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(80% 60% at 70% 30%, #000 0%, transparent 75%);
    mask-image: radial-gradient(80% 60% at 70% 30%, #000 0%, transparent 75%);
    pointer-events: none;
}

.lg-brand > * {
    position: relative;
}

.lg-brand--photo::before {
    display: none;
}

.lg-brand--admin {
    background-color: var(--lg-ink);
    background-image:
        radial-gradient(90% 70% at 100% 0%, rgba(21, 101, 216, .55) 0%, rgba(21, 101, 216, 0) 60%),
        radial-gradient(70% 60% at 0% 100%, rgba(21, 101, 216, .25) 0%, rgba(21, 101, 216, 0) 60%),
        linear-gradient(170deg, #13233B 0%, #0F1B2D 60%, #0A1322 100%);
}

.lg-brand__logo {
    display: block;
    width: auto;
    height: 34px;
}

.lg-brand__body {
    margin-top: auto;
    max-width: 520px;
}

.lg-brand__eyebrow {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .78);
}

.lg-brand__title {
    margin: 0;
    font-family: var(--lg-font-display);
    font-size: clamp(34px, 3.4vw, 50px);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: -.01em;
    color: #fff;
    text-wrap: balance;
}

.lg-brand__points {
    list-style: none;
    margin: 28px 0 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.lg-brand__points li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 17px;
    color: rgba(255, 255, 255, .92);
}

.lg-brand__points .lg-icon {
    width: 26px;
    height: 26px;
    padding: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .16);
    color: #fff;
}

.lg-brand__secure {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 28px 0 0;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: 15px;
    color: rgba(255, 255, 255, .9);
}

.lg-brand__custom {
    font-size: 17px;
    color: rgba(255, 255, 255, .92);
}

.lg-brand__custom h1,
.lg-brand__custom h2,
.lg-brand__custom h3 {
    margin: 0 0 12px;
    font-family: var(--lg-font-display);
    line-height: 1.08;
    color: #fff;
}

.lg-brand__custom a {
    color: #fff;
}

.lg-brand__foot {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, .62);
}

/* order tickets: decoration in the Grub24 Orders app style */
.lg-tickets {
    display: grid;
    gap: 10px;
    width: min(100%, 400px);
    margin-bottom: auto;
}

.lg-ticket {
    display: grid;
    grid-template-columns: auto auto 1fr auto;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, .96);
    color: var(--lg-ink);
    box-shadow: 0 12px 30px -12px rgba(4, 22, 58, .55);
    font-size: 14px;
}

.lg-ticket:nth-child(2) {
    margin-inline-start: 28px;
    opacity: .92;
}

.lg-ticket:nth-child(3) {
    margin-inline-start: 56px;
    opacity: .8;
}

.lg-ticket__no {
    font-weight: 700;
}

.lg-ticket__meta {
    color: var(--lg-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lg-ticket__time {
    font-variant-numeric: tabular-nums;
    color: var(--lg-muted);
}

.lg-pill {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
}

.lg-pill--new {
    background: var(--lg-blue-soft);
    color: var(--lg-blue-dark);
}

.lg-pill--prep {
    background: var(--lg-amber-soft);
    color: var(--lg-amber-ink);
}

.lg-pill--ready {
    background: var(--lg-green-soft);
    color: var(--lg-green-ink);
}

/* ---------- form side ---------- */

.lg-main {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    background: var(--lg-surface);
}

.lg-card {
    width: 100%;
    max-width: 400px;
    animation: lg-rise 220ms var(--lg-ease) both;
}

@keyframes lg-rise {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

.lg-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
}

.lg-mark {
    display: block;
    width: 40px;
    height: 40px;
}

.lg-eyebrow {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--lg-blue);
}

.lg-title {
    margin: 0 0 6px;
    font-family: var(--lg-font-display);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.01em;
    color: var(--lg-ink);
    text-wrap: balance;
}

.lg-title:focus {
    outline: none;
}

.lg-sub {
    margin: 0 0 28px;
    color: var(--lg-muted);
    font-size: 15px;
}

/* the forgot / new-password forms start hidden; admin.js slides them in */
.mt-frm,
.mt-frm-activation {
    display: none;
}

.lg-field {
    margin-bottom: 18px;
}

.lg-label-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
}

.lg-label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    color: var(--lg-ink-2);
}

.lg-control {
    position: relative;
}

.lg-control > .lg-icon {
    position: absolute;
    top: 14px;
    inset-inline-start: 14px;
    color: var(--lg-muted);
    pointer-events: none;
    transition: color 150ms var(--lg-ease);
}

.lg-control:focus-within > .lg-icon {
    color: var(--lg-blue);
}

.lg-input {
    display: block;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 14px;
    padding-inline-start: 44px;
    border: 1px solid var(--lg-field);
    border-radius: var(--lg-radius);
    background: var(--lg-surface);
    color: var(--lg-ink);
    font: inherit;
    font-size: 16px; /* 16px stops iOS zooming into the field */
    transition: border-color 150ms var(--lg-ease), box-shadow 150ms var(--lg-ease);
    -webkit-appearance: none;
    appearance: none;
}

.lg-control--reveal .lg-input {
    padding-inline-end: 52px;
}

.lg-input:hover {
    border-color: #A9B6C8;
}

.lg-input:focus {
    outline: none;
    border-color: var(--lg-blue);
    box-shadow: var(--lg-focus);
}

/* jQuery Form Validator marks */
.lg-input.error,
.has-error .lg-input {
    border-color: var(--lg-red);
}

.lg-input.error:focus,
.has-error .lg-input:focus {
    box-shadow: 0 0 0 3px rgba(180, 35, 24, .18);
}

.lg-form .form-error,
.lg-form .help-block {
    display: block;
    margin-top: 6px;
    font-size: 13px;
    color: var(--lg-red);
}

.lg-reveal {
    position: absolute;
    top: 2px;
    inset-inline-end: 2px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--lg-muted);
    cursor: pointer;
}

.lg-reveal:hover {
    color: var(--lg-ink);
}

.lg-reveal:focus-visible {
    outline: none;
    box-shadow: var(--lg-focus);
}

.lg-reveal .lg-icon:last-child,
.lg-reveal[aria-pressed="true"] .lg-icon:first-child {
    display: none;
}

.lg-reveal[aria-pressed="true"] .lg-icon:last-child {
    display: block;
}

.lg-caps {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--lg-amber-ink);
}

.lg-link,
.lg-back {
    padding: 0;
    border: 0;
    background: none;
    color: var(--lg-blue);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    border-radius: 4px;
}

.lg-link:hover,
.lg-back:hover {
    color: var(--lg-blue-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.lg-link:focus-visible,
.lg-back:focus-visible {
    outline: none;
    box-shadow: var(--lg-focus);
}

.lg-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 32px;
    margin-bottom: 18px;
}

.lg-back .lg-icon {
    width: 18px;
    height: 18px;
}

[dir="rtl"] .lg-back .lg-icon,
[dir="rtl"] .lg-btn .lg-icon {
    transform: scaleX(-1);
}

/* captcha: Turnstile (interaction-only, so usually invisible) or the old reCAPTCHA */
.lg-captcha:not(:empty),
.lg-form .uk-form-row {
    display: flex;
    justify-content: center;
    margin: 4px 0 18px;
}

.lg-captcha .cf-turnstile {
    width: 100%;
}

.lg-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 50px;
    margin-top: 8px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--lg-radius);
    background: var(--lg-blue);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 27, 45, .12), 0 8px 20px -10px rgba(21, 101, 216, .7);
    transition: background-color 150ms var(--lg-ease), transform 150ms var(--lg-ease);
}

.lg-btn:hover {
    background: var(--lg-blue-dark);
}

.lg-btn:active {
    transform: scale(.985);
}

.lg-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lg-blue);
}

.lg-btn .lg-icon {
    width: 18px;
    height: 18px;
    transition: transform 180ms var(--lg-ease);
}

.lg-btn:hover .lg-icon {
    transform: translateX(3px);
}

.lg-btn[disabled] {
    cursor: progress;
    background: var(--lg-blue);
    opacity: .85;
}

.lg-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, .35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lg-spin 700ms linear infinite;
}

.lg-btn.is-busy .lg-icon {
    display: none;
}

.lg-btn.is-busy .lg-spinner {
    display: block;
}

@keyframes lg-spin {
    to {
        transform: rotate(360deg);
    }
}

/* inline message above the forms (replaces the old toast on these pages) */
.lg-notice {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    padding: 12px 14px;
    border-radius: var(--lg-radius);
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    animation: lg-rise 180ms var(--lg-ease) both;
}

.lg-notice--error {
    background: var(--lg-red-soft);
    border-color: #F5C2BD;
    color: #8A1C12;
}

.lg-notice--success {
    background: var(--lg-green-soft);
    border-color: #B5E2C3;
    color: var(--lg-green-ink);
}

.lg-notice--warn {
    background: var(--lg-amber-soft);
    border-color: #F2D49B;
    color: var(--lg-amber-ink);
}

.lg-notice--info {
    background: var(--lg-blue-soft);
    border-color: #C7DAF5;
    color: var(--lg-blue-dark);
}

/* app badges */
.lg-apps {
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid var(--lg-line);
    text-align: center;
}

.lg-apps p {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--lg-muted);
}

.lg-apps__row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
}

.lg-apps__row a {
    display: block;
    border-radius: 8px;
    transition: transform 150ms var(--lg-ease);
}

.lg-apps__row a:hover {
    transform: translateY(-1px);
}

.lg-apps__row a:focus-visible {
    outline: none;
    box-shadow: var(--lg-focus);
}

.lg-apps__row img {
    display: block;
    height: 40px;
    width: auto;
}

/* ---------- small screens ---------- */

@media (max-width: 1100px) {
    .lg-tickets {
        display: none;
    }
}

@media (max-width: 900px) {
    .lg-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    /* the brand panel becomes a slim bar with the logo */
    .lg-brand {
        flex-direction: row;
        align-items: center;
        gap: 16px;
        padding: 16px;
    }

    .lg-brand__body,
    .lg-brand__foot {
        display: none;
    }

    .lg-brand__logo {
        height: 28px;
    }

    .lg-main {
        align-items: flex-start;
        padding: 32px 16px 40px;
    }

    .lg-head {
        display: none;
    }

    .lg-title {
        font-size: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lg-body *,
    .lg-body *::before,
    .lg-body *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }

    .lg-spinner {
        animation: lg-spin 1.4s linear infinite !important;
    }
}
