:root {
  color-scheme: light; font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: #20272b; background: #f0f2f3; --accent: #bc302e; --line: #d5dadd; --muted: #576368;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.auth-shell {
  min-height: 100vh; min-height: 100svh; display: grid; align-content: center;
  justify-items: center; padding: clamp(1rem, 5vh, 3.5rem) 1rem;
  background: radial-gradient(ellipse at 50% 32%, #fff 0, transparent 62%), #f0f2f3;
}
.auth-card { width: min(100%, 29.5rem); overflow: hidden; border: 1px solid #cfd5d7; border-radius: 1.1rem; background: #fff; box-shadow: 0 1.5rem 4.8rem #1a252b10, 0 .25rem .7rem #1a252b07; }
.brand {
  position: relative; isolation: isolate; display: flex; align-items: center; gap: .85rem; overflow: hidden;
  min-height: 6.7rem; padding: 1.65rem clamp(1.3rem, 6vw, 2.5rem); background: #20272b; color: white;
}
.wordmark { display: grid; gap: .1rem; }
.wordmark strong { font-size: 1.3rem; letter-spacing: -.04em; }
.wordmark span { font-size: .7rem; letter-spacing: .22em; font-weight: 650; color: #d9dee0; }
.brand-grid {
  position: absolute; z-index: -1; inset: 0 0 0 40%; opacity: .55;
  background-image: linear-gradient(120deg, #20272b 7%, transparent), repeating-linear-gradient(45deg, transparent 0 14px, #d968622b 14px 15px);
}
.panel-body { padding: clamp(1.5rem, 5vw, 2.5rem); }
h1 { margin: 0; font-size: clamp(1.75rem, 5vw, 2.12rem); line-height: 1.15; letter-spacing: -.045em; }
.intro { margin: .7rem 0 1.6rem; line-height: 1.55; color: var(--muted); }
button, input { font: inherit; }
form { display: grid; gap: .45rem; }
label { font-weight: 620; font-size: .94rem; }
label:not(:first-child) { margin-top: .55rem; }
input { width: 100%; min-width: 0; height: 2.88rem; padding: .65rem .8rem; border: 1px solid #bcc5c8; border-radius: .45rem; background: white; color: #20272b; }
.secret { position: relative; }
.secret input { padding-right: 5.1rem; }
button, a { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .6; cursor: wait; }
.secret button { position: absolute; right: .2rem; top: .18rem; bottom: .18rem; padding: 0 .6rem; border: 0; border-radius: .3rem; font-size: .83rem; font-weight: 650; background: transparent; color: #4d585e; }
.secret button:hover { background: #eef1f2; }
.submit, .secondary { border-radius: .48rem; min-height: 2.87rem; font-weight: 650; }
.submit { margin-top: .9rem; padding: .65rem 1rem; border: 1px solid var(--accent); background: var(--accent); color: white; }
.submit:hover { background: #a82b28; }
.secondary { background: #fff; border: 1px solid var(--line); padding: .65rem 1rem; }
.foot { border-top: 1px solid var(--line); padding-top: 1.2rem; margin-top: 1.5rem; display: flex; justify-content: space-between; gap: .7rem; flex-wrap: wrap; }
.foot a, .foot button { font: inherit; font-weight: 600; font-size: .92rem; color: #982623; text-underline-offset: .16rem; }
.foot button { background: transparent; border: 0; padding: 0; text-decoration: underline; }
#error { margin: 0 0 1rem; padding: .8rem .9rem; border-left: 3px solid var(--accent); border-radius: .3rem; background: #fff2f1; color: #832320; line-height: 1.4; }
:focus-visible { outline: 3px solid #326aa3; outline-offset: 2px; }
h1:focus:not(:focus-visible) { outline: 0; }
@media (max-width: 390px) { .auth-shell { padding: .65rem; } .panel-body { padding: 1.25rem; } }

form small { color: var(--muted); line-height: 1.4; font-size: .84rem; }
