:root {
    color-scheme: dark;
    --black: #0b0a09;
    --panel: #14120f;
    --gold: #e4bd72;
    --gold-soft: #c6a46c;
    --text: #f3ede1;
    --muted: #a49a8a;
    --line: #382f22;
    --gold-line: #5a4528;
    font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
.wave-badges { display: inline-flex; gap: 5px; flex-shrink: 0; }
.palette-slate, .tag-slate { --chip-ink: #d7d1c7; --chip-fill: #292725; --chip-edge: #494541; }
.palette-sky, .tag-sky { --chip-ink: #bdddeb; --chip-fill: #192b35; --chip-edge: #375569; }
.palette-mint, .tag-mint { --chip-ink: #b7dcbf; --chip-fill: #1c2c22; --chip-edge: #39543e; }
.palette-amber, .tag-amber { --chip-ink: #ead09c; --chip-fill: #322617; --chip-edge: #644c29; }
.palette-violet, .tag-violet { --chip-ink: #d9c7ed; --chip-fill: #2b2237; --chip-edge: #534164; }
.palette-rose, .tag-rose { --chip-ink: #edc3ca; --chip-fill: #39242a; --chip-edge: #683c47; }
.record-chip { display: inline-block; max-width: 100%; color: var(--chip-ink,#ead09c); background: var(--chip-fill,#322617); border: 1px solid var(--chip-edge,#644c29); border-radius: 999px; padding: 3px 8px; overflow-wrap: anywhere; }
body { margin: 0; }
a, button, input, select { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}
button, input, select, textarea { font: inherit; }
.wave-mark {
    position: relative;
    display: inline-grid;
    place-content: center;
    gap: 3px;
    width: 40px;
    aspect-ratio: 1;
    flex: 0 0 auto;
    border: 1px solid #745831;
    border-radius: 13px;
    background: linear-gradient(145deg, #2a2115, #15110b);
    box-shadow: inset 0 0 0 3px #15110b;
    color: var(--gold);
}
.wave-mark i {
    display: block;
    width: 18px;
    height: 5px;
    border-top: 1.5px solid currentColor;
    border-radius: 50%;
    transform: rotate(-14deg);
}
.wave-mark i:nth-child(2) { transform: translateX(2px) rotate(-14deg); }
.wave-mark i:last-child { opacity: .65; }

.wave-auth {
    display: grid;
    align-items: center;
    justify-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 32px 22px;
    background:
        radial-gradient(ellipse 29rem 25rem at 50% 27%, #21190e, transparent 100%),
        radial-gradient(ellipse 50rem 35rem at 50% -24%, #1a150e, transparent 100%),
        var(--black);
    color: var(--text);
}
.auth-shell { width: min(100%, 396px); padding-bottom: clamp(0px, 5vh, 54px); }
.auth-brand { display: grid; justify-items: center; gap: 16px; margin: 0 0 30px; }
.auth-brand .wave-mark { width: 62px; border-radius: 19px; }
.auth-brand .wave-mark i { width: 27px; height: 6px; border-width: 2px; }
.auth-brand h1 { margin: 0; color: var(--gold); font-size: 32px; line-height: 1.22; font-weight: 650; letter-spacing: .22em; text-indent: .22em; }
.auth-panel {
    padding: clamp(23px, 6vw, 36px);
    border: 1px solid var(--gold-line);
    border-radius: 20px;
    background: linear-gradient(150deg, #191610 0%, #14120f 60%, #11100e 100%);
    box-shadow: 0 24px 70px #0009;
}
.auth-panel h2 { margin: 0 0 25px; font-size: 18px; font-weight: 600; letter-spacing: .06em; }
.auth-panel form { display: grid; gap: 19px; }
.auth-panel label { display: grid; gap: 9px; color: #d1c2aa; font-size: 13px; }
.auth-panel input:not([type="hidden"]) {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    color: #f3e5cc;
    background: #100f0d;
    border: 1px solid #4f4029;
    border-radius: 10px;
    font-size: 16px;
}
.auth-panel input::placeholder { color: #867861; font-size: 14px; }
.auth-panel input:focus { border-color: #bc9251; }
.auth-submit, .primary-button {
    display: inline-grid;
    place-content: center;
    padding: 0 16px;
    border: 1px solid #e9c881;
    border-radius: 9px;
    background: linear-gradient(120deg, #efd08a, #c69447);
    color: #181107;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
}
.auth-submit { position: relative; min-height: 49px; margin-top: 5px; }
.auth-submit span { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); }
.auth-submit:hover, .primary-button:hover { background: #f2cd83; }
.auth-error { margin: -8px 0 16px; color: #ffb3a8; font-size: 14px; }
@media (max-height: 580px) {
    .wave-auth { padding-block: 24px; }
    .auth-shell { padding-bottom: 0; }
    .auth-brand { margin-bottom: 20px; }
}
