/* RoomServiceBell — Login & registration screens (matches landing page brand) */
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces.woff2") format("woff2"); font-weight: 300 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 300 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/assets/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
    --ink: #0d1b2a; --ink-2: #1b2b3f; --ink-soft: #46566b; --muted: #6b7a8f;
    --cream: #faf7f2; --sand: #f2ece2; --line: #e5ddcf; --white: #fff;
    --gold: #c39a5a; --gold-2: #e0bf86; --gold-deep: #9c7536;
    --teal: #1f8a7a; --violet: #6c5ce7; --amber: #e39b2d; --danger: #c0392b;
    --serif: "Fraunces", Georgia, serif;
    --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
h1 { margin: 0; text-wrap: balance; }
p { margin: 0; }
.ic { width: 20px; height: 20px; flex: none; display: block; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Shell ---------- */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.auth-main { display: flex; flex-direction: column; padding: 32px 56px; position: relative; background:
    radial-gradient(900px 500px at -10% -10%, rgba(243, 215, 166, .35), transparent 60%),
    radial-gradient(700px 500px at 110% 110%, rgba(207, 227, 224, .45), transparent 60%), var(--cream); }
.auth-top { display: flex; justify-content: space-between; align-items: center; }
.logo { display: inline-flex; align-items: center; gap: .6rem; font-size: 1.12rem; font-weight: 500; }
.logo strong { font-weight: 700; }
.logo-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, var(--ink), #2a3f5a); color: var(--gold-2); box-shadow: 0 6px 14px -6px rgba(13,27,42,.6), inset 0 1px 0 rgba(255,255,255,.14); }
.logo-mark .ic { width: 18px; height: 18px; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-size: .9rem; font-weight: 500; color: var(--ink-soft); padding: .45rem .8rem; border-radius: 999px; transition: background .2s, color .2s; }
.back-link .ic { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.back-link:hover { background: rgba(255,255,255,.7); color: var(--ink); }
.back-link:hover .ic { transform: translateX(-3px); }

.auth-form-wrap { width: 100%; max-width: 420px; margin: auto; padding: 48px 0; animation: rise .7s var(--ease) both; }
.auth-form-wrap.wide { max-width: 540px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); margin-bottom: .9rem; }
.auth h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.2rem, 3.4vw, 2.9rem); line-height: 1.06; letter-spacing: -.025em; font-variation-settings: "opsz" 144; }
.auth h1 em { font-style: italic; font-weight: 400; color: var(--gold-deep); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.sub { margin-top: .8rem; color: var(--ink-soft); font-size: 1.02rem; }

/* ---------- Alerts ---------- */
.alert { display: flex; gap: .65rem; align-items: flex-start; margin-top: 1.6rem; padding: .85rem 1rem; border-radius: 14px; font-size: .93rem; animation: rise .4s var(--ease) both; }
.alert .ic { width: 19px; height: 19px; margin-top: 1px; }
.alert-error { background: #fdf0ee; border: 1px solid #f3c9c2; color: #8a2a1d; }

/* ---------- Form ---------- */
.auth-form { margin-top: 1.8rem; display: grid; gap: 1.1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field label { display: flex; align-items: baseline; justify-content: space-between; font-size: .88rem; font-weight: 600; margin-bottom: .45rem; color: var(--ink); }
.opt { font-weight: 500; font-size: .78rem; color: var(--muted); }
.field input { width: 100%; height: 50px; padding: 0 1rem; font: inherit; font-size: .98rem; color: var(--ink); background: rgba(255,255,255,.85); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 1px 2px rgba(13,27,42,.04); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input::placeholder { color: #a7b1be; }
.field input:hover { border-color: #d8cdb9; }
.field input:focus { outline: none; background: var(--white); border-color: var(--gold); box-shadow: 0 0 0 4px rgba(195,154,90,.16); }
.field input[aria-invalid="true"] { border-color: #e2a59b; background: #fffafa; }
.field input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(192,57,43,.12); border-color: var(--danger); }
.field-error { margin-top: .4rem; font-size: .84rem; color: var(--danger); font-weight: 500; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 3.2rem; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; background: none; border: 0; border-radius: 10px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.pw-toggle:hover { background: var(--sand); color: var(--ink); }
.pw-toggle[aria-pressed="true"] { color: var(--gold-deep); }
.pw-toggle .ic { width: 19px; height: 19px; }

.pw-meter { margin-top: .6rem; }
.pw-meter .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.pw-meter .bars span { height: 4px; border-radius: 4px; background: #e8e1d5; transition: background .3s; }
.pw-label { display: block; margin-top: .4rem; font-size: .8rem; color: var(--muted); }
.pw-meter[data-level="1"] .bars span:nth-child(-n+1) { background: #d9604f; }
.pw-meter[data-level="2"] .bars span:nth-child(-n+2) { background: #e39b2d; }
.pw-meter[data-level="3"] .bars span:nth-child(-n+3) { background: #7bb35a; }
.pw-meter[data-level="4"] .bars span { background: var(--teal); }
.pw-meter[data-level="1"] .pw-label { color: #b3473a; }
.pw-meter[data-level="4"] .pw-label { color: var(--teal); }
.field input.match-ok { border-color: #8cc9bd; }

.check { position: relative; display: flex; gap: .7rem; align-items: center; font-size: .9rem; color: var(--ink-soft); cursor: pointer; user-select: none; }
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check .box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #cfc4b1; background: var(--white); color: transparent; transition: background .2s, border-color .2s, color .2s; }
.check .box .ic { width: 14px; height: 14px; stroke-width: 3; }
.check input:checked + .box { background: var(--ink); border-color: var(--ink); color: var(--gold-2); }
.check input:focus-visible + .box { outline: 2px solid var(--gold); outline-offset: 2px; }
.check input[aria-invalid="true"] + .box { border-color: var(--danger); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; font: inherit; font-weight: 600; font-size: 1rem; border-radius: 999px; padding: 0 1.4rem; height: 52px; border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s; }
.btn .ic { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-primary { background: var(--ink); color: var(--white); box-shadow: 0 10px 22px -10px rgba(13,27,42,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:hover { background: var(--ink-2); transform: translateY(-1px); box-shadow: 0 16px 30px -12px rgba(13,27,42,.6), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primary:active { transform: translateY(0); }
.btn-block { width: 100%; margin-top: .4rem; }

.switch { margin-top: 1.6rem; text-align: center; color: var(--ink-soft); font-size: .95rem; }
.switch a { color: var(--ink); font-weight: 600; border-bottom: 1.5px solid var(--gold-2); padding-bottom: 1px; transition: color .2s, border-color .2s; }
.switch a:hover { color: var(--gold-deep); border-color: var(--gold); }

.auth-foot { display: flex; align-items: center; justify-content: center; gap: .5rem; font-size: .8rem; color: var(--muted); text-align: center; }
.auth-foot .ic { width: 14px; height: 14px; }

/* ---------- Brand panel ---------- */
.auth-panel { position: relative; overflow: hidden; margin: 14px; border-radius: 28px; color: #e6ecf3;
    background: linear-gradient(155deg, #16293e 0%, var(--ink) 55%, #0a1520 100%); display: flex; align-items: center; justify-content: center; padding: 56px; }
.auth-panel::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(224,191,134,.14) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%); }
.panel-glow { position: absolute; width: 620px; height: 620px; right: -220px; top: -240px; border-radius: 50%; background: radial-gradient(circle, rgba(195,154,90,.32), transparent 65%); animation: glow 14s ease-in-out infinite alternate; }
.auth-panel::after { content: ""; position: absolute; width: 520px; height: 520px; left: -220px; bottom: -260px; border-radius: 50%; background: radial-gradient(circle, rgba(31,138,122,.22), transparent 65%); }
@keyframes glow { to { transform: translate(-40px, 40px) scale(1.1); } }
.panel-inner { position: relative; z-index: 1; width: 100%; max-width: 460px; }
.panel-quote { font-family: var(--serif); font-weight: 500; font-size: clamp(2rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.025em; color: var(--white); text-wrap: balance; font-variation-settings: "opsz" 144; }
.panel-quote em { font-weight: 400; color: var(--gold-2); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }

.mini-board { margin-top: 2.4rem; padding: 8px; border-radius: 20px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); backdrop-filter: blur(8px); box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.mb-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px 10px; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #9aa9bc; }
.live { display: inline-flex; align-items: center; gap: .4rem; color: #7fd1c2; letter-spacing: .08em; }
.live i { width: 7px; height: 7px; border-radius: 50%; background: #4fc7b1; box-shadow: 0 0 0 3px rgba(79,199,177,.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(79,199,177,.05); } }
.mb-row { display: flex; align-items: center; gap: .8rem; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.96); color: var(--ink); margin-top: 6px; font-size: .9rem; line-height: 1.35; }
.mb-row b { display: block; font-weight: 600; }
.mb-row small { color: var(--muted); font-size: .8rem; }
.mb-row .chip { margin-left: auto; }
.mb-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; }
.mb-ic .ic { width: 18px; height: 18px; }
.mb-ic.amber { background: #fdf0dc; color: var(--amber); }
.mb-ic.teal { background: #dff1ee; color: var(--teal); }
.mb-ic.violet { background: #ebe8fd; color: var(--violet); }
.chip { display: inline-flex; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.chip-new { background: #fdf0dc; color: #a86a0d; }
.chip-go { background: #dff1ee; color: #17705f; }
.chip-done { background: #eef0f3; color: #5d6878; }

.panel-points { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .8rem; color: #c3cedb; font-size: .97rem; }
.panel-points li { display: flex; gap: .7rem; align-items: center; }
.panel-points .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(224,191,134,.15); color: var(--gold-2); stroke-width: 2.6; }

.panel-steps { list-style: none; padding: 0; margin: 2.4rem 0 0; display: grid; gap: 0; position: relative; }
.panel-steps li { position: relative; display: flex; gap: 1rem; padding: 0 0 1.6rem; }
.panel-steps li:not(:last-child)::before { content: ""; position: absolute; left: 19px; top: 44px; bottom: 6px; width: 1px; background: linear-gradient(rgba(224,191,134,.5), rgba(224,191,134,.08)); }
.panel-steps .n { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.04); font-family: var(--serif); font-size: 1.1rem; color: #c3cedb; }
.panel-steps li.active .n { background: var(--gold-2); border-color: var(--gold-2); color: var(--ink); box-shadow: 0 0 0 6px rgba(224,191,134,.15); }
.panel-steps b { display: block; color: var(--white); font-weight: 600; margin-top: .45rem; }
.panel-steps small { display: block; color: #9aa9bc; font-size: .9rem; line-height: 1.5; margin-top: .15rem; }
.panel-sec { display: flex; gap: .8rem; align-items: flex-start; margin-top: .6rem; padding: 16px 18px; border-radius: 16px; background: rgba(224,191,134,.08); border: 1px solid rgba(224,191,134,.22); font-size: .9rem; color: #c3cedb; line-height: 1.5; }
.panel-sec .ic { color: var(--gold-2); width: 22px; height: 22px; margin-top: 1px; }
.panel-sec b { color: var(--white); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
    .auth-main { padding: 28px 36px; }
    .auth-panel { padding: 40px; }
}
@media (max-width: 920px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-panel { display: none; }
    .auth-main { min-height: 100vh; min-height: 100dvh; }
}
@media (max-width: 560px) {
    .auth-main { padding: 20px; }
    .auth-form-wrap { padding: 36px 0 32px; }
    .field-row { grid-template-columns: 1fr; }
    .back-link { padding: .4rem .2rem; font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
.auth-form > .field-error { margin-top: -.7rem; }
