/* Sign-in and sign-up pages, in the app's teal. Layout taken from the OrderOrange partner portal
   (food.css: .mf-login-* for the sign-in card, .rg-* for the register stage). */

/* ================= Sign-in ================= */
.mf-login-bg {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(1000px 640px at 82% -12%, rgba(94, 234, 212, .42) 0%, rgba(94, 234, 212, 0) 62%),
        radial-gradient(820px 560px at -12% 112%, rgba(4, 47, 46, .58) 0%, rgba(4, 47, 46, 0) 60%),
        linear-gradient(158deg, #14B8A6 0%, #0F766E 48%, #134E4A 100%);
}
/* Fine film grain over the gradient. */
.mf-login-bg::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .055;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mf-login-bg > * { position: relative; z-index: 1; }
.mf-login-shade {
    position: absolute;
    inset: 0;
    z-index: 0 !important;
    background: radial-gradient(120% 90% at 50% 45%, transparent 40%, rgba(2, 30, 28, .38) 100%);
}
.mf-login-wrap { width: 100%; min-height: 0; padding-block: 24px; }

.mf-login-card {
    width: 100%;
    position: relative;
    background: rgba(255, 255, 255, .96) !important;
    backdrop-filter: blur(10px);
    border-radius: 26px !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .25) !important;
    animation: rg-in .5s cubic-bezier(.16, 1, .3, 1) both;
}
.mf-login-logo {
    width: 84px;
    height: 84px;
    border-radius: 26px;
    background: #fff;
    display: grid;
    place-items: center;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(15, 118, 110, .22), 0 0 0 6px rgba(15, 118, 110, .07);
}
.mf-login-logo img { width: 62px; height: 62px; object-fit: contain; display: block; }
.mf-login-card .mud-typography-h5 { font-size: 19px; font-weight: 800; }
.mf-login-card .mud-typography-body2 { font-size: 13px; }
.mf-login-card .mud-input,
.mf-login-card .mud-input input,
.mf-login-card .mud-input-slot { font-size: 14px; }
.mf-login-card .mud-input-label { font-size: 13.5px; }

/* Segmented sign-in / register switch. */
.mf-login-tabs {
    display: flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: var(--mud-palette-gray-light);
    border: 1px solid var(--mud-palette-lines-default);
}
.mf-login-tabs button {
    flex: 1;
    border: none;
    cursor: pointer;
    padding: 9px 10px;
    border-radius: 999px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    color: var(--mud-palette-text-secondary);
    background: transparent;
    transition: all .2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.mf-login-tabs button.on {
    background: linear-gradient(135deg, #0F766E, #14B8A6);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 118, 110, .35);
}

.mf-login-btn.mud-button-root {
    height: 50px;
    border-radius: 999px !important;
    font-weight: 800;
    font-size: 15.5px;
    text-transform: none;
    box-shadow: 0 8px 22px rgba(15, 118, 110, .35) !important;
}
.mf-remember .mud-typography { font-size: 13px; }

.mf-login-help {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mud-palette-text-secondary);
}
.mf-login-help a {
    display: inline-block;
    margin-inline-start: 4px;
    font-weight: 700;
    color: var(--mud-palette-primary);
    text-decoration: none;
}
.mf-login-help a:hover { text-decoration: underline; }

/* Typed text runs left-to-right (usernames, passwords); the label stays on the page side. */
.mf-ltr input { direction: ltr !important; text-align: left !important; }

/* Fully left-to-right field (phone): label, adornment and text. */
.mf-ltr-full,
.mf-ltr-full .mud-input,
.mf-ltr-full input { direction: ltr !important; text-align: left !important; }
.mf-ltr-full .mud-input-label {
    left: 0 !important;
    right: auto !important;
    transform-origin: top left !important;
}
.mf-ltr-full .mud-input-label.mud-input-label-outlined.mud-shrink,
.mf-ltr-full .mud-shrink ~ label.mud-input-label.mud-input-label-outlined {
    transform: translate(14px, -6px) scale(.75) !important;
}

/* ================= Register ================= */
.rg-topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 9px 16px;
    padding-top: max(9px, env(safe-area-inset-top));
    background: rgba(255, 255, 255, .88);
    backdrop-filter: blur(14px) saturate(1.2);
    -webkit-backdrop-filter: blur(14px) saturate(1.2);
    box-shadow: 0 6px 24px rgba(15, 80, 75, .08);
    border-bottom: 1px solid rgba(200, 225, 222, .5);
}
.rg-topbar .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.rg-topbar .mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: #fff;
    display: grid;
    place-items: center;
    box-shadow: 0 4px 14px rgba(15, 80, 75, .14), inset 0 0 0 1px #D5ECE9;
}
.rg-topbar .mark img { width: 26px; height: 26px; }
.rg-topbar .tx { display: flex; flex-direction: column; line-height: 1.15; }
.rg-topbar .tx b { font-size: 15.5px; font-weight: 800; color: #1F2937; letter-spacing: -.2px; }
.rg-topbar .tx small { font-size: 9px; font-weight: 800; letter-spacing: 2px; color: #0D9488; }
.rg-loginbtn2 {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(135deg, #14B8A6, #0D9488);
    color: #fff;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(13, 148, 136, .35);
    transition: transform .12s ease, box-shadow .15s ease;
}
.rg-loginbtn2:hover { box-shadow: 0 10px 26px rgba(13, 148, 136, .45); }
.rg-loginbtn2:active { transform: scale(.95); }
[dir="rtl"] .rg-loginbtn2 .mud-icon-root { transform: scaleX(-1); }

.rg-shell {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    background:
        radial-gradient(900px 520px at 88% -140px, rgba(94, 234, 212, .42), transparent 62%),
        radial-gradient(700px 420px at 4% 108%, rgba(20, 184, 166, .40), transparent 60%),
        linear-gradient(150deg, #042F2E 0%, #134E4A 46%, #0D9488 100%);
}
/* Two slow glowing blobs drifting behind the stage. */
.rg-shell::before,
.rg-shell::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(circle, rgba(45, 212, 191, .55), transparent 70%);
}
.rg-shell::before { width: 560px; height: 560px; top: -180px; inset-inline-end: -140px; animation: rg-float 18s ease-in-out infinite; }
.rg-shell::after { width: 460px; height: 460px; bottom: -200px; inset-inline-start: -120px; animation: rg-float 22s ease-in-out infinite reverse; }

.rg-stage {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
    padding: 96px 24px 48px;
}
.rg-pitch { color: #fff; animation: rg-in .6s cubic-bezier(.16, 1, .3, 1) both; }
.rg-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11.5px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 1px;
    color: #ECFDF9;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 999px;
    padding: 7px 14px;
    backdrop-filter: blur(6px);
}
.rg-pitch h1 {
    font-size: clamp(30px, 3.5vw, 46px);
    line-height: 1.15;
    letter-spacing: -.5px;
    font-weight: 800;
    margin: 18px 0 14px;
    max-width: 16ch;
    text-wrap: balance;
    color: #fff;
}
.rg-pitch > p { margin: 0 0 22px; font-size: 16.5px; line-height: 1.7; color: rgba(255, 255, 255, .86); max-width: 46ch; }
.rg-points { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 10px; }
.rg-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: rgba(255, 255, 255, .95); }
.rg-points .ic {
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    color: #134E4A;
    background: #CCFBF1;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .18);
}
.rg-guide {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .45);
    padding-bottom: 2px;
    cursor: pointer;
}
.rg-guide:hover { color: #CCFBF1; border-color: #CCFBF1; }

.rg-wrap { width: 100%; display: flex; justify-content: center; animation: rg-in .6s .08s cubic-bezier(.16, 1, .3, 1) both; }
.rg-card {
    width: min(94vw, 440px);
    margin-inline: auto;
    border-radius: 26px !important;
    padding: 30px 28px 24px !important;
    background: rgba(255, 255, 255, .98) !important;
    border: 1px solid rgba(255, 255, 255, .7) !important;
    box-shadow: 0 40px 90px rgba(4, 47, 46, .34), 0 4px 16px rgba(4, 47, 46, .14) !important;
}
.rg-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.rg-top b { font-size: 22px; font-weight: 800; letter-spacing: -.3px; color: #0F172A; flex: 1; }
.rg-sub { margin: -14px 0 20px; font-size: 13px; color: #64748B; }
.rg-card .mud-input-outlined .mud-input-outlined-border { border-radius: 14px; border-color: #D3E3E1; border-width: 1.5px; }
.rg-card .mud-input-root { background: #F8FBFB; border-radius: 14px; }
.rg-acts { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.rg-acts .mud-button-root {
    border-radius: 16px !important;
    padding: 13px 18px !important;
    font-weight: 800 !important;
    font-size: 15.5px !important;
    letter-spacing: .2px;
    text-transform: none;
    background: linear-gradient(135deg, #14B8A6, #0D9488) !important;
    box-shadow: 0 14px 30px rgba(15, 118, 110, .36) !important;
    transition: transform .18s, box-shadow .18s;
}
.rg-acts .mud-button-root:hover { transform: translateY(-1px); box-shadow: 0 18px 38px rgba(15, 118, 110, .44) !important; }
.rg-acts .mud-button-root:active { transform: translateY(0); }
.rg-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #E3ECEB;
    font-size: 12.5px;
    font-weight: 700;
    color: #64748B;
}
.rg-help { margin-top: 14px; text-align: center; font-size: 13px; line-height: 1.5; color: var(--mud-palette-text-secondary); }
.rg-help a { margin-inline-start: 4px; font-weight: 700; color: var(--mud-palette-primary); text-decoration: none; cursor: pointer; }
.rg-help a:hover { text-decoration: underline; }

@keyframes rg-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes rg-float { 0%, 100% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(0, 40px, 0) scale(1.08); } }

@media (prefers-reduced-motion: reduce) {
    .rg-shell::before, .rg-shell::after, .rg-pitch, .rg-wrap, .mf-login-card { animation: none; }
}

/* Phone and narrow tablet: the card leads, the promise follows under it. */
@media (max-width: 980px) {
    .rg-stage { grid-template-columns: 1fr; gap: 22px; padding: 80px 16px 40px; min-height: auto; align-content: start; }
    .rg-wrap { order: 1; }
    .rg-pitch { order: 2; text-align: center; margin-top: 6px; padding-bottom: 8px; }
    .rg-pitch h1 { font-size: clamp(23px, 6vw, 28px); margin: 14px auto 10px; max-width: 22ch; }
    .rg-pitch > p { margin: 0 auto 20px; max-width: 40ch; font-size: 15px; }
    .rg-points { justify-content: center; justify-items: start; text-align: start; gap: 9px; }
    .rg-card { padding: 24px 20px 20px !important; }
    .rg-top b { font-size: 19px; }
}
@media (max-width: 420px) {
    .rg-topbar .tx small { display: none; }
    .rg-loginbtn2 { padding: 9px 14px; }
}

/* ================= Sign-in: welcome panel beside the card ================= */
.lg-bg { align-items: stretch; }
.lg-stage {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 56px;
    padding: 40px 24px;
}
.lg-wrap { display: flex; justify-content: center; animation: rg-in .6s .08s cubic-bezier(.16, 1, .3, 1) both; }
.lg-wrap .mf-login-card { max-width: 440px; animation: none; }
.lg-pitch { color: #fff; animation: rg-in .6s cubic-bezier(.16, 1, .3, 1) both; }
.lg-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12.5px;
    font-weight: 800;
    color: #ECFDF9;
    background: rgba(255, 255, 255, .18);
    border: 1px solid rgba(255, 255, 255, .38);
    backdrop-filter: blur(6px);
}
.lg-pitch h1 { margin: 18px 0 12px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; font-weight: 800; letter-spacing: -.5px; max-width: 15ch; }
.lg-pitch p { margin: 0 0 26px; max-width: 44ch; font-size: 16px; line-height: 1.7; color: rgba(255, 255, 255, .88); }
.lg-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; max-width: 520px; }
.lg-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .28);
    backdrop-filter: blur(8px);
    animation: rg-in .6s cubic-bezier(.16, 1, .3, 1) both;
    transition: transform .2s ease, background .2s ease;
}
.lg-tile:nth-child(2) { animation-delay: .1s; }
.lg-tile:nth-child(3) { animation-delay: .2s; }
.lg-tile:hover { transform: translateY(-3px); background: rgba(255, 255, 255, .2); }
.lg-tile .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 4px; color: #115E59; background: #CCFBF1; }
.lg-tile b { font-size: 14.5px; font-weight: 800; }
.lg-tile small { font-size: 12px; color: rgba(255, 255, 255, .8); }

/* Two warm glows drifting behind everything. */
.lg-blob { position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none; z-index: 0; background: radial-gradient(circle, rgba(94, 234, 212, .55), transparent 70%); }
.lg-blob.a { width: 520px; height: 520px; top: -160px; inset-inline-start: -120px; animation: rg-float 18s ease-in-out infinite; }
.lg-blob.b { width: 440px; height: 440px; bottom: -180px; inset-inline-end: -100px; animation: rg-float 22s ease-in-out infinite reverse; background: radial-gradient(circle, rgba(4, 47, 46, .55), transparent 70%); }

/* The card. */
.mf-login-logo .hm-logo { display: block; filter: drop-shadow(0 6px 12px rgba(15, 118, 110, .3)); transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.mf-login-card:hover .mf-login-logo .hm-logo { transform: rotate(-6deg) scale(1.05); }
.lg-caps { display: flex; align-items: center; gap: 6px; margin: 4px 2px 0; font-size: 12px; font-weight: 700; color: #B54708; animation: rg-in .25s ease both; }
.lg-btn .lg-arrow { margin-inline-start: 8px; transition: transform .2s ease; }
.lg-btn:hover .lg-arrow { transform: translateX(-4px); }
.lg-btn { position: relative; overflow: hidden; }
.lg-btn::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 40%;
    left: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    transform: translateX(-120%) skewX(-20deg);
    pointer-events: none;
}
.lg-btn:hover::after { animation: lg-sheen .7s ease; }
@keyframes lg-sheen { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(260%) skewX(-20deg); } }
.lg-secure { display: flex; align-items: center; justify-content: center; gap: 5px; margin-top: 10px; font-size: 11.5px; font-weight: 600; color: #64748B; }
.mf-login-card .mud-input-adornment .mud-icon-root { color: #9FB3B0; }
.mf-login-card .mud-input-control:focus-within .mud-input-adornment .mud-icon-root { color: #0F766E; }
.mf-login-card .mud-input-outlined .mud-input-outlined-border { transition: border-color .18s ease, box-shadow .18s ease; }
.mf-login-card .mud-input-control:focus-within .mud-input-outlined-border { box-shadow: 0 0 0 3px rgba(15, 118, 110, .14); }

/* Register top bar: the new mark stands on its own. */
.rg-topbar .mark { background: none !important; box-shadow: none !important; filter: drop-shadow(0 4px 10px rgba(15, 118, 110, .3)); }

@media (max-width: 980px) {
    .lg-stage { grid-template-columns: 1fr; gap: 0; padding: 24px 14px; }
    .lg-pitch { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .lg-blob, .lg-pitch, .lg-wrap, .lg-tile { animation: none !important; }
}

/* ================= Modern background =================
   A deep teal night: aurora glows in mint, sky and a touch of violet, over a fine grid
   that fades towards the edges. Shared by the sign-in page and the register shell. */
.mf-login-bg,
.rg-shell {
    background:
        radial-gradient(900px 600px at 88% -12%, rgba(45, 212, 191, .34), transparent 60%),
        radial-gradient(760px 540px at -6% 106%, rgba(56, 189, 248, .22), transparent 60%),
        radial-gradient(620px 440px at 50% 122%, rgba(16, 185, 129, .24), transparent 65%),
        linear-gradient(160deg, #031B1A 0%, #06302D 45%, #0B4F4A 100%) !important;
}
.mf-login-bg::before { content: none; }
.mf-login-shade { background: radial-gradient(120% 90% at 50% 45%, transparent 45%, rgba(0, 12, 11, .45) 100%); }
.au-grid {
    position: absolute !important;
    inset: 0;
    z-index: 0 !important;
    pointer-events: none;
    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: 46px 46px;
    -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 15%, transparent 78%);
    mask-image: radial-gradient(ellipse 75% 65% at 50% 42%, #000 15%, transparent 78%);
}
.lg-blob.a { background: radial-gradient(circle, rgba(45, 212, 191, .55), transparent 70%); }
.lg-blob.b { background: radial-gradient(circle, rgba(56, 189, 248, .38), transparent 70%); }
.lg-blob.c { width: 360px; height: 360px; top: 38%; inset-inline-start: 40%; background: radial-gradient(circle, rgba(129, 140, 248, .26), transparent 70%); animation: rg-float 26s ease-in-out infinite; }
.rg-shell::before { background: radial-gradient(circle, rgba(45, 212, 191, .50), transparent 70%); }
.rg-shell::after { background: radial-gradient(circle, rgba(56, 189, 248, .36), transparent 70%); }

/* Cards float on the night with a hairline of light. */
.mf-login-card,
.rg-card {
    border: 1px solid rgba(255, 255, 255, .55) !important;
    box-shadow: 0 40px 100px rgba(0, 0, 0, .40), 0 0 0 6px rgba(255, 255, 255, .05) !important;
}
.lg-tile { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .16); }
.lg-tile:hover { background: rgba(255, 255, 255, .14); }
.lg-chip, .rg-chip { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .22); color: #CCFBF1; }
.lg-pitch h1, .rg-pitch h1 {
    background: linear-gradient(100deg, #fff 35%, #99F6E4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Register top bar: dark glass instead of a white strip. */
.rg-topbar {
    background: rgba(3, 27, 26, .55) !important;
    border-bottom: 1px solid rgba(255, 255, 255, .10) !important;
    box-shadow: none !important;
}
.rg-topbar .tx b { color: #fff !important; }
.rg-topbar .tx small { color: #5EEAD4 !important; }

/* ================= Living backdrop (Shared/AuroraBackground.razor) ================= */
.mf-login-bg,
.rg-shell { background: #020D0D !important; }
.rg-shell::before,
.rg-shell::after { content: none !important; }

.au-bg {
    position: absolute !important;
    inset: 0;
    z-index: 0 !important;
    overflow: hidden;
    pointer-events: none;
    background: radial-gradient(120% 85% at 50% 0%, #0B3F3B 0%, #052523 42%, #020D0D 100%);
}
/* Aurora: four clouds of light that wander and blend where they meet. */
.au-blob { position: absolute; border-radius: 50%; filter: blur(70px); mix-blend-mode: screen; will-change: transform; }
.au-blob.a { width: max(46vw, 420px); height: max(46vw, 420px); top: -16vw; right: -8vw; background: radial-gradient(circle at 35% 35%, rgba(45, 212, 191, .95), transparent 66%); animation: au-a 19s ease-in-out infinite alternate; }
.au-blob.b { width: max(42vw, 380px); height: max(42vw, 380px); bottom: -18vw; left: -10vw; background: radial-gradient(circle at 60% 40%, rgba(56, 189, 248, .75), transparent 66%); animation: au-b 23s ease-in-out infinite alternate; }
.au-blob.c { width: max(30vw, 300px); height: max(30vw, 300px); top: 30%; left: 28%; background: radial-gradient(circle, rgba(129, 140, 248, .55), transparent 66%); animation: au-c 27s ease-in-out infinite alternate; }
.au-blob.d { width: max(34vw, 320px); height: max(34vw, 320px); bottom: -14vw; right: 12vw; background: radial-gradient(circle, rgba(16, 185, 129, .60), transparent 66%); animation: au-d 21s ease-in-out infinite alternate; }
@keyframes au-a { to { transform: translate3d(-14vw, 12vh, 0) scale(1.18) rotate(24deg); } }
@keyframes au-b { to { transform: translate3d(16vw, -10vh, 0) scale(1.12) rotate(-18deg); } }
@keyframes au-c { to { transform: translate3d(12vw, 14vh, 0) scale(1.3); } }
@keyframes au-d { to { transform: translate3d(-10vw, -12vh, 0) scale(.9); } }

/* A wide beam turning slowly, like a lighthouse far away. */
.au-beam {
    position: absolute;
    inset: -45%;
    background: conic-gradient(from 210deg at 50% 50%,
        transparent 0deg, rgba(94, 234, 212, .16) 38deg, transparent 78deg,
        transparent 200deg, rgba(56, 189, 248, .12) 238deg, transparent 280deg);
    filter: blur(42px);
    animation: au-turn 46s linear infinite;
}
@keyframes au-turn { to { transform: rotate(360deg); } }

/* Stars: one dot casting many, twinkling together. */
.au-stars { position: absolute; top: 0; left: 0; width: 2px; height: 2px; border-radius: 50%; background: transparent; box-shadow: 59vw 62vh 0 1px rgba(255, 255, 255, 0.5), 25vw 68vh 0 1px rgba(255, 255, 255, 0.5), 14vw 60vh 0 0px rgba(255, 255, 255, 0.5), 13vw 8vh 0 1px rgba(255, 255, 255, 0.9), 85vw 23vh 0 0px rgba(255, 255, 255, 0.35), 9vw 7vh 0 0px rgba(255, 255, 255, 0.5), 78vw 6vh 0 1px rgba(255, 255, 255, 0.7), 58vw 28vh 0 0px rgba(255, 255, 255, 0.7), 65vw 3vh 0 0px rgba(255, 255, 255, 0.9), 85vw 38vh 0 1px rgba(255, 255, 255, 0.35), 92vw 35vh 0 0px rgba(255, 255, 255, 0.5), 67vw 39vh 0 0px rgba(255, 255, 255, 0.35), 74vw 16vh 0 1px rgba(255, 255, 255, 0.35), 39vw 52vh 0 0px rgba(255, 255, 255, 0.35), 89vw 3vh 0 0px rgba(255, 255, 255, 0.5), 8vw 63vh 0 1px rgba(255, 255, 255, 0.9), 55vw 12vh 0 0px rgba(255, 255, 255, 0.7), 45vw 14vh 0 0px rgba(255, 255, 255, 0.7), 3vw 55vh 0 0px rgba(255, 255, 255, 0.5), 33vw 15vh 0 0px rgba(255, 255, 255, 0.35), 61vw 65vh 0 0px rgba(255, 255, 255, 0.5), 59vw 68vh 0 0px rgba(255, 255, 255, 0.5), 55vw 52vh 0 0px rgba(255, 255, 255, 0.9), 55vw 30vh 0 0px rgba(255, 255, 255, 0.7), 77vw 41vh 0 0px rgba(255, 255, 255, 0.5), 25vw 53vh 0 0px rgba(255, 255, 255, 0.35), 20vw 30vh 0 1px rgba(255, 255, 255, 0.7), 3vw 45vh 0 0px rgba(255, 255, 255, 0.9), 11vw 12vh 0 0px rgba(255, 255, 255, 0.5), 76vw 34vh 0 0px rgba(255, 255, 255, 0.7), 49vw 61vh 0 0px rgba(255, 255, 255, 0.9), 75vw 20vh 0 1px rgba(255, 255, 255, 0.5), 82vw 22vh 0 0px rgba(255, 255, 255, 0.5), 80vw 34vh 0 0px rgba(255, 255, 255, 0.5), 96vw 28vh 0 1px rgba(255, 255, 255, 0.9), 79vw 13vh 0 1px rgba(255, 255, 255, 0.35), 15vw 16vh 0 0px rgba(255, 255, 255, 0.7), 32vw 53vh 0 0px rgba(255, 255, 255, 0.9), 78vw 65vh 0 0px rgba(255, 255, 255, 0.5), 94vw 11vh 0 0px rgba(255, 255, 255, 0.5), 63vw 12vh 0 0px rgba(255, 255, 255, 0.5), 28vw 5vh 0 0px rgba(255, 255, 255, 0.7); animation: au-twinkle 5s ease-in-out infinite alternate; }
@keyframes au-twinkle { from { opacity: .35; } to { opacity: .95; } }

/* The floor: a grid in perspective that glides towards the viewer and fades at the horizon. */
.au-floor {
    position: absolute;
    left: -60%;
    right: -60%;
    bottom: -6%;
    height: 58%;
    background-image:
        linear-gradient(rgba(94, 234, 212, .26) 1px, transparent 1px),
        linear-gradient(90deg, rgba(94, 234, 212, .26) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(620px) rotateX(64deg);
    transform-origin: 50% 100%;
    -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, transparent 82%);
    mask-image: linear-gradient(to top, rgba(0, 0, 0, .9) 0%, transparent 82%);
    animation: au-glide 7s linear infinite;
}
@keyframes au-glide { from { background-position: 0 0; } to { background-position: 0 60px; } }

/* A soft light under the pointer (--mx / --my are set by js/admin.js). */
.au-spot {
    position: absolute;
    inset: 0;
    background: radial-gradient(460px circle at var(--mx, 70%) var(--my, 30%), rgba(153, 246, 228, .16), transparent 62%);
    transition: opacity .3s ease;
}

/* Glass shapes afloat. */
.au-shape {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .16);
    background: linear-gradient(135deg, rgba(255, 255, 255, .10), rgba(255, 255, 255, 0) 60%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 20px 50px rgba(0, 0, 0, .18);
    will-change: transform;
}
.au-shape.s1 { width: 120px; height: 120px; top: 12%; left: 6%; border-radius: 30px; animation: au-float1 13s ease-in-out infinite alternate; }
.au-shape.s2 { width: 190px; height: 190px; bottom: -6%; right: -3%; border-radius: 50%; background: none; border-width: 1.5px; border-color: rgba(94, 234, 212, .30); animation: au-float2 17s ease-in-out infinite alternate; }
.au-shape.s3 { width: 150px; height: 46px; top: 9%; right: 30%; border-radius: 999px; animation: au-float3 15s ease-in-out infinite alternate; }
@keyframes au-float1 { from { transform: translateY(0) rotate(12deg); } to { transform: translateY(-34px) rotate(36deg); } }
@keyframes au-float2 { from { transform: translate(0, 0) scale(1); } to { transform: translate(-26px, -30px) scale(1.12); } }
@keyframes au-float3 { from { transform: translateY(0) rotate(-10deg); } to { transform: translateY(26px) rotate(4deg); } }

/* Film grain, then a vignette to seat the card. */
.au-noise {
    position: absolute;
    inset: 0;
    opacity: .07;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.au-bg::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 45%, transparent 52%, rgba(0, 0, 0, .55) 100%); }

@media (max-width: 700px) { .au-shape { display: none; } .au-floor { height: 40%; } }
@media (prefers-reduced-motion: reduce) {
    .au-blob, .au-beam, .au-stars, .au-floor, .au-shape { animation: none !important; }
}

/* Short laptop screens (about 650-780 px tall): tighten the sign-in card so the page fits without
   a scrollbar. Taller screens keep the roomy layout; really short ones still scroll. */
@media (max-height: 800px) and (min-width: 981px) {
    .lg-stage { padding-block: 14px; }
    .lg-wrap .mf-login-card { padding: 16px 26px !important; }
    .lg-wrap .mf-login-logo { width: 62px; height: 62px; border-radius: 20px; margin-bottom: 8px !important; }
    .lg-wrap .mf-login-logo svg { width: 46px; height: 46px; }
    .lg-wrap .mf-login-card .mb-4 { margin-bottom: 12px !important; }
    .lg-wrap .mf-login-card .mb-3 { margin-bottom: 10px !important; }
    .lg-wrap .mf-login-card .mud-typography-h5 { font-size: 17px; }
}

/* Chrome paints saved user names / passwords light blue: keep the field white like the others. */
.mf-login-card input:-webkit-autofill,
.mf-login-card input:-webkit-autofill:hover,
.mf-login-card input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #fff inset !important;
    box-shadow: 0 0 0 100px #fff inset !important;
    -webkit-text-fill-color: #0F172A !important;
    caret-color: #0F172A;
    transition: background-color 9999s ease-out 0s;
}

/* The same account in several hotels: pick one (after the password, like OrderOrange's partner sign-in). */
.lg-pick { display: flex; flex-direction: column; gap: 8px; animation: rg-in .35s cubic-bezier(.16, 1, .3, 1) both; }
.lg-pick-h { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; padding: 10px 12px; border-radius: 14px; background: #F0FAF9; border: 1px solid #CDEDE8; }
.lg-pick-h > .mud-icon-root { color: #0F766E; flex: none; }
.lg-pick-h b { display: block; font-size: 14.5px; font-weight: 800; color: #0F172A; }
.lg-pick-h small { font-size: 12px; color: #64748B; }
.lg-pick-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; cursor: pointer; text-align: start;
    font-family: inherit; background: #fff; border: 1px solid #E2E8EA; transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.lg-pick-item:hover:not(:disabled) { border-color: #14B8A6; box-shadow: 0 10px 22px -12px rgba(15, 118, 110, .55); transform: translateY(-1px); }
.lg-pick-item:disabled { opacity: .6; cursor: default; }
.lg-pick-item .ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 12px; font-weight: 800; color: #fff;
    background: linear-gradient(135deg, #14B8A6, #0F766E); }
.lg-pick-item .nm { flex: 1; font-size: 14px; font-weight: 700; color: #0F172A; }
.lg-pick-item > .mud-icon-root { color: #94A3B8; }
.lg-pick-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; padding: 4px 6px; border: 0; background: transparent;
    cursor: pointer; font-family: inherit; font-size: 12.5px; font-weight: 700; color: #0F766E; }
.lg-pick-back .mud-icon-root { width: 16px; height: 16px; }

/* ================= Sign-in fields: label above, icon, teal focus glow ================= */
.lg-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.lg-field label { font-size: 12.5px; font-weight: 800; color: #334155; padding-inline-start: 2px; }
.lg-box { position: relative; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; border-radius: 14px;
    background: #F6F9F9; border: 1.5px solid #E1E9E8; transition: border-color .18s ease, background .18s ease, box-shadow .2s ease; }
.lg-box:hover { border-color: #C9DCD9; }
.lg-box:focus-within { background: #fff; border-color: #14B8A6; box-shadow: 0 0 0 4px rgba(20, 184, 166, .14), 0 8px 20px -12px rgba(15, 118, 110, .5); }
.lg-box .lg-ic { width: 20px; height: 20px; flex: none; color: #94A3B8; transition: color .18s ease; }
.lg-box:focus-within .lg-ic { color: #0F766E; }
.lg-box input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0;
    font-family: inherit; font-size: 15px; font-weight: 600; color: #0F172A; letter-spacing: .2px; }
.lg-box input::placeholder { color: #B6C2C8; font-weight: 500; }
.lg-box input[type="password"] { letter-spacing: 2px; }
.lg-box input[type="password"]::placeholder { letter-spacing: 1px; }
.lg-eye { width: 34px; height: 34px; flex: none; display: grid; place-items: center; margin-inline-end: -8px; border: 0; border-radius: 10px;
    background: transparent; color: #94A3B8; cursor: pointer; transition: background .15s ease, color .15s ease; }
.lg-eye:hover { background: #EAF3F2; color: #0F766E; }
.lg-eye .mud-icon-root { width: 20px; height: 20px; }
/* saved names and passwords: same look as typed ones (Chrome would paint them blue) */
.lg-box input:-webkit-autofill,
.lg-box input:-webkit-autofill:hover,
.lg-box input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 100px #F6F9F9 inset !important;
    -webkit-text-fill-color: #0F172A !important;
    caret-color: #0F172A;
    transition: background-color 9999s ease-out 0s;
}
.lg-box:focus-within input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #fff inset !important; }

/* choose the hotel (after the password, when the account is in several hotels) */
.hm-ch-dialog.mud-dialog { border-radius: 22px !important; overflow: hidden; }
.hm-ch-content { padding: 0 !important; margin: 0 !important; }
.hm-ch-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px; color: #fff;
    background: radial-gradient(300px 120px at 100% 0, rgba(94, 234, 212, .32), transparent 70%), linear-gradient(135deg, #0B2B29, #0F766E 65%, #14B8A6); }
.hm-ch-head .ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 14px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.hm-ch-head b { display: block; font-size: 16.5px; font-weight: 800; }
.hm-ch-head small { font-size: 12.5px; line-height: 1.6; opacity: .88; }
.hm-ch-list { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 6px; }
.hm-ch-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 16px; cursor: pointer; text-align: start;
    font-family: inherit; background: #fff; border: 1.5px solid #E3ECEB; transition: border-color .15s ease, box-shadow .2s ease, transform .15s ease; }
.hm-ch-item:hover { border-color: #14B8A6; transform: translateY(-1px); box-shadow: 0 12px 24px -14px rgba(15, 118, 110, .6); }
.hm-ch-item .av { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 13px; font-size: 17px; font-weight: 800; color: #fff; }
.hm-ch-item .nm { flex: 1; font-size: 14.5px; font-weight: 800; color: #0F172A; }
.hm-ch-item .go { width: 32px; height: 32px; flex: none; display: grid; place-items: center; border-radius: 50%; color: #0F766E; background: #E6F6F4; transition: all .15s ease; }
.hm-ch-item:hover .go { color: #fff; background: #0F766E; }
.hm-ch-item .go .mud-icon-root { width: 18px; height: 18px; }
