/* Tidebell's server pages (sign-in, sign-up, reset, legal, checkout, messages), in the game's look.
   Written by hand. The pictures and fonts beside it come from server/scripts/web-assets.py.
   Tokens: godot/scripts/ui/palette.gd (docs/interface/INTERFACE.md §3). */
@font-face{font-family:"Lora";src:url("lora.woff2") format("woff2");font-weight:400 700;font-display:swap}
@font-face{font-family:"Alegreya";src:url("alegreya.woff2") format("woff2");font-weight:400 900;font-display:swap}
:root{--ink:#1b1f27;--slate:#303744;--slate-hi:#3c4453;--slate-lo:#252a34;--bone:#d4cbb3;--bone-dim:#a39d8c;--ochre:#c6a36b;--seafoam:#83c8c5;--ember:#c8735f;--moss:#8fae7a;color-scheme:dark}
*{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%;background:var(--ink)}
body{position:relative;isolation:isolate;margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;align-items:center;color:var(--bone);font:400 1.0625rem/1.55 "Alegreya",Georgia,"Times New Roman",serif;padding:max(1rem,env(safe-area-inset-top)) max(.75rem,env(safe-area-inset-right)) max(1rem,env(safe-area-inset-bottom)) max(.75rem,env(safe-area-inset-left))}
/* The title painting, dimmed like a plate behind a modal. Fixed on its own layer (iOS ignores background-attachment: fixed). */
body::before{content:"";position:fixed;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(27,31,39,.42) 0%,rgba(27,31,39,.66) 45%,rgba(27,31,39,.9) 100%),url("bg-title-small.webp") 50% 62%/cover no-repeat var(--ink)}
@media (min-width:60rem),(min-height:40rem) and (min-width:40rem){body::before{background-image:linear-gradient(180deg,rgba(27,31,39,.42) 0%,rgba(27,31,39,.66) 45%,rgba(27,31,39,.9) 100%),url("bg-title.webp")}}
main{width:100%;max-width:28rem;margin:auto 0}
main.wide{max-width:46rem}
.brand{margin:0;text-align:center;font:700 2.25rem/1.15 "Lora",Georgia,serif;letter-spacing:.04em;text-shadow:0 2px 0 rgba(27,31,39,.8),0 0 18px rgba(27,31,39,.9)}
.brand a{color:var(--bone);text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.tagline{margin:0 0 1rem;text-align:center;color:var(--bone);font-style:italic;text-shadow:0 1px 0 rgba(27,31,39,.9),0 0 12px rgba(27,31,39,.95)}
/* The panel frame: ui.panel's nine-slice, its torn bone lip and rope bindings at the corners. */
.card{border:26px solid transparent;border-image:url("panel.webp") 32 fill/26px stretch;padding:.5rem .4rem .75rem;filter:drop-shadow(0 10px 22px rgba(0,0,0,.45))}
h1{margin:0 0 .9rem;font:600 1.6rem/1.25 "Lora",Georgia,serif;color:var(--bone)}
h1::after{content:"";display:block;width:3.5rem;height:2px;margin-top:.55rem;background:var(--ochre);border-radius:1px}
h2{margin:1.6rem 0 .5rem;font:600 1.2rem/1.3 "Lora",Georgia,serif;color:var(--ochre)}
p{margin:.5rem 0 1rem}
ul{padding-left:1.25rem}
li{margin:.35rem 0}
li::marker{color:var(--ochre)}
strong{color:var(--bone);font-weight:700}
label{display:block;margin:1.1rem 0 .35rem;font-weight:600}
.hint{display:block;margin-top:.15rem;color:var(--bone-dim);font-size:.95rem;font-weight:400}
/* Inputs sit in ui.well, the recessed slate inset. */
input[type=email],input[type=password],input[type=text],input[type=date]{display:block;width:100%;min-width:0;min-height:50px;padding:.45rem .55rem;font:inherit;font-size:1.0625rem;color:var(--bone);background:none;border:10px solid transparent;border-image:url("well.webp") 20 fill/10px stretch;border-radius:0;-webkit-appearance:none;appearance:none}
input::-webkit-calendar-picker-indicator{filter:invert(.85) sepia(.3)}
input[aria-invalid=true]{outline:2px solid var(--ember);outline-offset:-4px}
.check{display:flex;gap:.75rem;align-items:flex-start;min-height:44px;margin:1.25rem 0 0;font-weight:400;cursor:pointer}
.check input{flex:none;width:26px;height:26px;margin:.15rem 0 0;accent-color:var(--ochre)}
/* Buttons: the game's plaque buttons. The primary is ui.button-primary (the warm bone plaque with
   rope loops), the secondary ui.button (the slate-wood plaque). */
button{display:flex;align-items:center;justify-content:center;width:100%;min-height:56px;margin-top:1.5rem;padding:.2rem .5rem .3rem;font:700 1.15rem/1.2 "Lora",Georgia,serif;letter-spacing:.01em;color:var(--ink);background:none;border:14px solid transparent;border-width:14px 40px;border-image:url("plaque.webp") 14 40 fill/14px 40px stretch;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:filter .12s,transform .06s}
button:hover{filter:brightness(1.07) drop-shadow(0 0 6px rgba(198,163,107,.45))}
button:active{transform:translateY(1px);filter:brightness(.94)}
button.secondary{min-height:48px;font-size:1rem;font-weight:600;color:var(--bone);border-width:12px 24px;border-image:url("button.webp") 12 24 fill/12px 24px stretch}
button.secondary:hover{filter:brightness(1.15)}
:focus-visible{outline:3px solid var(--seafoam);outline-offset:3px}
a{color:var(--seafoam);text-underline-offset:.15em}
a:hover{color:#a6dcd9}
.links{display:flex;flex-direction:column;align-items:center;margin:1.1rem 0 0;padding:0;list-style:none}
.links li{margin:0}
.links a{display:inline-flex;align-items:center;min-height:44px;padding:0 .5rem}
.alert{margin:0 0 1rem;padding:.65rem .9rem;border-radius:6px;background:rgba(200,115,95,.16);border-left:4px solid var(--ember)}
.alert.ok{background:rgba(143,174,122,.14);border-left-color:var(--moss)}
.field-error{display:block;margin-top:.3rem;color:#e2a594;font-size:.95rem}
.draft{margin:0 0 1.25rem;padding:.6rem .9rem;border-radius:6px;background:rgba(198,163,107,.16);border-left:4px solid var(--ochre);font-weight:600}
code{padding:.1em .35em;border-radius:4px;background:var(--slate-lo);font:.9em ui-monospace,Menlo,Consolas,monospace;overflow-wrap:anywhere}
.order{margin:0 0 1rem;padding:.75rem .9rem;border-radius:6px;background:rgba(27,31,39,.45)}
.order .price{display:block;margin-top:.15rem;font:700 1.45rem/1.2 "Lora",Georgia,serif;color:var(--ochre)}
.actions{display:flex;flex-wrap:wrap;gap:.25rem .75rem;margin:.5rem 0 1rem}
.actions form{flex:1 1 12rem;margin:0}
.actions form.wide{flex-basis:100%}
.actions button{margin-top:.5rem}
footer{margin:1rem 0 0;text-align:center;color:var(--bone-dim);font-size:.95rem;text-shadow:0 1px 0 rgba(27,31,39,.9)}
footer a{display:inline-flex;align-items:center;min-height:44px;padding:0 .4rem}
@media (min-width:40rem){.card{border-width:32px;border-image-width:32px;padding:.75rem 1.25rem 1.1rem}.brand{font-size:2.6rem}}
/* Phone landscape: little height, so the brand and the gaps shrink and the page scrolls. */
@media (max-height:30rem) and (orientation:landscape){.brand{font-size:1.7rem}.tagline{margin-bottom:.5rem}main{margin:0}}
@media (prefers-reduced-motion:reduce){button{transition:none}}
