.auth-page {
  --ink: #000; --paper: #FFF8EA; --white: #FFFDFC;
  --yellow: #FFCC33; --yellow-2: #FFE08A; --red: var(--ufc2-scarlet); --crimson: var(--ufc2-scarlet-dark);
  --blue: #2342FF; --blue-2: #1A2FC2; --green: #36FF6B; --mint: #3EE0D0;
  --line: 3px; --shadow: 6px 6px 0 var(--ink);
  --f-display: "Inter Display", "Inter", sans-serif;
  --f-body: "Inter", sans-serif;
  --f-osd: "Unifont UFC", monospace;
  --halftone: radial-gradient(rgba(0,0,0,.15) 1.3px, transparent 1.7px) 0 0 / 11px 11px;
  --star: polygon(50% 0%,58.2% 13.9%,71.7% 5%,73.1% 21.1%,89.1% 18.8%,83.3% 33.9%,98.7% 38.9%,87% 50%,98.7% 61.1%,83.3% 66.1%,89.1% 81.2%,73.1% 78.9%,71.7% 95%,58.2% 86.1%,50% 100%,41.8% 86.1%,28.3% 95%,26.9% 78.9%,10.9% 81.2%,16.7% 66.1%,1.3% 61.1%,13% 50%,1.3% 38.9%,16.7% 33.9%,10.9% 18.8%,26.9% 21.1%,28.3% 5%,41.8% 13.9%);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body.auth-page { font-family: var(--f-body); font-size: 17px; line-height: 1.5; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; font-optical-sizing: auto; }
h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px dashed var(--blue); outline-offset: 4px; }
.wrap { width: 1200px; margin: 0 auto; }
.auth-stage { position: relative; isolation: isolate; min-height: 962px; display: grid; place-items: center; padding: 48px 32px 80px; overflow: hidden; }
.auth-shell { position: relative; z-index: 1; }
.stage__bg { position: absolute; z-index: -2; inset: 0; overflow: hidden; background: var(--paper); filter: blur(3px) saturate(.9); }
.stage__dim { position: absolute; z-index: -1; inset: 0; background: rgba(10,10,20,.62); }
.stage__bg .burst { position: absolute; width: 2000px; height: 2000px; left: -500px; top: -700px; border-radius: 50%; background: repeating-conic-gradient(var(--yellow) 0 7.5deg, var(--yellow-2) 7.5deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 18%, transparent 46%); }
.disp { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: .92; }
.osd { font-family: var(--f-osd); font-size: 32px; line-height: 1; }
.outline { -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-shadow: 5px 5px 0 var(--ink); word-spacing: .12em; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--f-display); font-weight: 900; font-size: 19px; text-transform: uppercase; letter-spacing: .03em; color: var(--ink); background: var(--yellow); border: var(--line) solid var(--ink); border-radius: 999px; padding: 14px 28px; box-shadow: var(--shadow); white-space: nowrap; }
.btn--red { background: var(--red); }
.btn--white { background: var(--white); }
.btn--block { width: 100%; }
.link { font-weight: 700; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; color: var(--ink); }
.bubble { --bb: var(--white); position: relative; display: inline-block; background: var(--bb); border: var(--line) solid var(--ink); border-radius: 24px; padding: 12px 20px; font-weight: 800; font-size: 18px; line-height: 1.25; box-shadow: 4px 4px 0 var(--ink); }
.bubble::before, .bubble::after { content: ""; position: absolute; top: 100%; clip-path: polygon(0 0, 100% 0, 0 100%); }
.bubble::before { left: 26px; width: 32px; height: 30px; background: var(--ink); }
.bubble::after { left: 29px; width: 25px; height: 23px; margin-top: -3.5px; background: var(--bb); }
.bubble--r::before { left: auto; right: 26px; transform: scaleX(-1); }
.bubble--r::after { left: auto; right: 29px; transform: scaleX(-1); }
.bubble--up::before, .bubble--up::after { top: auto; bottom: 100%; clip-path: polygon(0 100%, 100% 100%, 0 0); }
.bubble--up::after { margin-top: 0; margin-bottom: -3.5px; }
.pow { --pw: var(--yellow); position: absolute; width: 120px; height: 120px; display: grid; place-items: center; font-family: var(--f-display); font-weight: 900; font-size: 19px; text-transform: uppercase; text-align: center; line-height: 1; transform: rotate(12deg); z-index: 3; }
.pow span { position: relative; z-index: 1; }
.pow::before, .pow::after { content: ""; position: absolute; clip-path: var(--star); }
.pow::before { inset: 0; background: var(--ink); }
.pow::after { inset: 7px; background: var(--pw); }
.pow span { position: relative; z-index: 1; }
.modal__close { position: absolute; top: -18px; right: -18px; width: 52px; height: 52px; border-radius: 50%; background: var(--white); border: var(--line) solid var(--ink); box-shadow: 3px 3px 0 var(--ink); display: grid; place-items: center; font-weight: 900; font-size: 24px; z-index: 6; }

.reg { width: 1040px; display: grid; grid-template-columns: 400px 1fr; background: var(--white); border: 3px solid #000; border-radius: 34px; box-shadow: 12px 12px 0 #000; overflow: hidden; }
.reg__side { position: relative; overflow: hidden; isolation: isolate; background: var(--yellow); border-right: 3px solid #000; padding: 34px 32px 30px; display: flex; flex-direction: column; }
.reg__side::before { content: ""; position: absolute; z-index: -1; width: 1100px; height: 1100px; left: -350px; top: 150px; border-radius: 50%; background: repeating-conic-gradient(var(--yellow) 0 7.5deg, var(--yellow-2) 7.5deg 15deg); -webkit-mask-image: radial-gradient(circle, #000 15%, transparent 48%); }
.reg__side::after { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--halftone); -webkit-mask-image: linear-gradient(180deg, #000, transparent 50%); }
.reg__osd { display: inline-flex; align-self: flex-start; gap: 12px; font-size: 24px; background: #000; color: #fff; padding: 3px 12px 7px; border-radius: 8px; }
.reg__osd span:first-child { color: var(--red); }
.reg__title { font-size: 64px; margin: 20px 0 14px; }
.reg__title span { color: var(--red); }
.reg__lead { font-weight: 600; font-size: 16px; }
.reg__steps { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.reg__steps li { display: flex; align-items: center; gap: 14px; background: var(--white); border: 3px solid #000; border-radius: 16px; padding: 10px 14px; font-weight: 700; }
.reg__steps li .n { width: 40px; height: 40px; border-radius: 12px; background: #000; color: var(--yellow); display: grid; place-items: center; font-size: 32px; flex: none; }
.reg__steps li.now { background: var(--red); box-shadow: 4px 4px 0 #000; }
.reg__steps li small { display: block; font-weight: 600; font-size: 13px; opacity: .7; }
.reg__side .bubble { margin-top: auto; font-size: 16px; align-self: flex-start; }
.reg__form { padding: 36px 44px 34px; }
.reg__form h1 { font-size: 46px; }
.reg__form .sub { margin: 8px 0 24px; font-weight: 600; color: rgba(0,0,0,.6); }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.fgrid .wide { grid-column: 1 / -1; }
.checks { display: grid; gap: 12px; margin: 22px 0 24px; }
.reg__alt { text-align: center; margin-top: 18px; font-weight: 600; }

.tvl { position: relative; padding-top: 70px; }
.tvl::before, .tvl::after { content: ""; position: absolute; top: 0; width: 7px; height: 96px; background: #000; border-radius: 4px; }
.tvl::before { left: 44%; transform: rotate(-30deg); transform-origin: bottom; } .tvl::after { left: 52%; transform: rotate(28deg); transform-origin: bottom; }
.tvl__tip { position: absolute; top: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 3px solid #000; }
.tvl__body { position: relative; display: flex; gap: 22px; background: var(--white); border: 3px solid #000; border-radius: 44px; padding: 24px; box-shadow: 14px 14px 0 #000; }
.tvl__screen { width: 560px; border: 3px solid #000; border-radius: 30px; background: var(--paper); overflow: hidden; position: relative; }
.tvl__screen::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0,0,0,.025) 0 2px, transparent 2px 5px); pointer-events: none; }
.tvl__bar { display: flex; justify-content: space-between; align-items: center; background: #000; color: #fff; padding: 6px 18px 12px; }
.tvl__bar span:last-child { color: var(--green); }
.tvl__form { padding: 30px 40px 34px; position: relative; }
.tvl__form h1 { font-size: 64px; }
.tvl__form h1 span { color: var(--red); }
.tvl__form .sub { margin: 10px 0 24px; font-weight: 600; color: rgba(0,0,0,.6); }
.tvl__form .field + .field { margin-top: 16px; }
.tvl__row { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 22px; }
.tvl__alt { margin-top: 20px; padding-top: 18px; border-top: 2px dashed rgba(0,0,0,.2); text-align: center; font-weight: 600; }
.tvl__panel { width: 110px; display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 10px; }
.knob { width: 84px; height: 84px; border-radius: 50%; border: 3px solid #000; background: var(--yellow); position: relative; box-shadow: 4px 4px 0 #000; }
.knob::after { content: ""; position: absolute; left: 50%; top: 8px; width: 6px; height: 28px; margin-left: -3px; background: #000; border-radius: 3px; transform-origin: 50% 34px; transform: rotate(35deg); }
.knob--r { background: var(--red); width: 64px; height: 64px; }
.knob--r::after { height: 20px; transform-origin: 50% 24px; transform: rotate(-60deg); }
.tvl__panel .lbl { font-size: 16px; margin-top: -10px; }
.grill { display: grid; gap: 7px; width: 80px; margin-top: 6px; }
.grill i { height: 5px; background: #000; border-radius: 3px; }
.power { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.power i { width: 18px; height: 18px; border-radius: 50%; background: var(--green); border: 3px solid #000; box-shadow: 0 0 12px var(--green); }
.tvl__legs { display: flex; justify-content: space-between; padding: 0 90px; }
.tvl__legs i { width: 10px; height: 34px; background: #000; border-radius: 0 0 5px 5px; }
.tvl__legs i:first-child { transform: rotate(14deg); } .tvl__legs i:last-child { transform: rotate(-14deg); }
.login-bubble { position: absolute; left: -250px; top: 170px; font-size: 20px; transform: rotate(-5deg); }
.login-pow { left: auto; right: -70px; top: 30px; }

.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 7px; }
.field label em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: rgba(0,0,0,.5); }
.field label .link { font-weight: 700; text-transform: none; letter-spacing: 0; }
.auth-input { display: block; width: 100%; height: 54px; padding: 0 16px; background: var(--white); border: 3px solid var(--ink); border-radius: 16px; font-size: 17px; font-weight: 500; min-width: 0; }
.auth-input:focus { outline: none; box-shadow: 0 0 0 4px var(--yellow); }
.auth-input.form-error { border-color: var(--red); }
.auth-password { position: relative; }
.auth-password .auth-input { padding-right: 54px; }
.password-toggle { position: absolute; right: 4px; top: 30px; display: grid; place-items: center; width: 46px; height: 46px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; }
.password-toggle svg { width: 26px; height: 26px; }
.password-toggle[aria-pressed="true"] { background: var(--yellow-2); }
.hint { font-size: 13px; color: rgba(0,0,0,.6); }
.auth-submit { font-size: 21px; padding: 16px; margin-top: 24px; cursor: pointer; }
.reg__return { margin-top: 34px !important; }
.registration-notice { margin-top: 22px; font-size: 14px; }
.message { margin: 0 0 20px; padding: 12px 16px; background: var(--yellow-2); border: 3px solid var(--ink); border-radius: 14px; font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.message.error { background: #ffe1e7; }
.message.success { background: #bff0cf; }
.error-message { color: var(--crimson); font-size: 13px; margin-top: 7px; }
.password-setup-notice { margin-bottom: 24px; padding: 16px; border: 3px solid var(--ink); border-radius: 16px; background: var(--yellow-2); }
.password-setup-notice h2 { font-size: 22px; line-height: 1.15; margin-bottom: 10px; }
.password-setup-notice p, .setup-explanation { font-size: 14px; margin-bottom: 14px; }
.password-setup-notice .btn { font-size: 14px; padding: 12px; white-space: normal; cursor: pointer; }
.power .osd { font-size: 16px; }
.ufcon-captcha { width: 100%; min-width: 0; }
.ufcon-captcha iframe { max-width: 100%; }
.smartcaptcha-retry { margin-top: 10px; padding: 10px 16px; border: 3px solid var(--ink); border-radius: 999px; background: var(--yellow); font-weight: 800; cursor: pointer; }
@media (max-width: 1200px) {
    .login-bubble { left: -120px; top: 140px; width: 180px; font-size: 16px; }
    .login-pow { right: -40px; }
}
@media (max-width: 1100px) {
    .reg { width: min(900px, calc(100vw - 64px)); grid-template-columns: 340px minmax(0, 1fr); }
    .reg__form { padding-inline: 30px; }
    .reg__side { padding-inline: 24px; }
    .reg__title { font-size: 56px; }
    .login-bubble, .login-pow { display: none; }
}
@media (max-width: 800px) {
    .auth-stage { min-height: calc(100dvh - var(--bh-header-height)); padding: 38px 20px 64px; }
    .auth-shell { width: 100%; }
    .reg { width: 100%; grid-template-columns: 1fr; border-radius: 26px; box-shadow: 7px 7px 0 var(--ink); }
    .reg__side { border-right: 0; border-bottom: 3px solid var(--ink); padding: 24px; }
    .reg__title { font-size: 52px; }
    .reg__steps { gap: 10px; margin-top: 18px; }
    .reg__side .bubble { margin-top: 24px !important; }
    .reg__form { padding: 26px 24px 30px; }
    .reg__form h1 { font-size: 40px; overflow-wrap: anywhere; }
    .tvl { width: min(746px, 100%); margin-inline: auto; padding-top: 52px; }
    .tvl::before, .tvl::after { height: 76px; }
    .tvl__body { gap: 14px; padding: 16px; border-radius: 30px; box-shadow: 8px 8px 0 var(--ink); }
    .tvl__screen { width: auto; flex: 1; min-width: 0; border-radius: 22px; }
    .tvl__panel { width: 62px; gap: 16px; flex: none; }
    .knob { width: 54px; height: 54px; }
    .knob::after { height: 18px; transform-origin: 50% 22px; }
    .knob--r { width: 44px; height: 44px; }
    .knob--r::after { height: 12px; transform-origin: 50% 16px; }
    .grill { width: 50px; }
    .tvl__form { padding: 26px 24px 30px; }
    .tvl__form h1 { font-size: 54px; }
    .tvl__bar { font-size: 22px; padding-block: 8px 10px; gap: 8px; flex-wrap: wrap; }
}
@media (max-width: 520px) {
    .auth-stage { padding: 28px 16px 52px; }
    .reg__side { padding: 22px 20px; }
    .reg__title { font-size: 48px; }
    .reg__osd { font-size: 20px; gap: 8px; }
    .reg__form { padding: 26px 18px; }
    .reg__form h1 { font-size: 36px; }
    .fgrid { grid-template-columns: 1fr; }
    .modal__close { top: -16px; right: -6px; width: 42px; height: 42px; }
    .tvl__body { padding: 10px; border-radius: 26px; }
    .tvl__panel { display: none; }
    .tvl__form { padding: 24px 16px 26px; }
    .tvl__form h1 { font-size: 48px; }
    .tvl__bar { font-size: 17px; padding-inline: 12px; }
    .tvl__tip { width: 18px; height: 18px; }
    .outline { -webkit-text-stroke-width: 5px; text-shadow: 3px 3px 0 var(--ink); }
    .btn { white-space: normal; }
    .auth-submit { font-size: 18px; }
}

.modal__close { text-decoration: none; }
