:root {
  --accent: #6258d9; --accent-hover: #5046c1; --ink: #20253b;
  --muted: #62687a; --line: #dce0ea; --surface: #fff; --canvas: #f2f3f9;
  font-family: "Segoe UI", Arial, sans-serif; color: var(--ink); font-size: 15px;
}
* { box-sizing: border-box; }
body { margin: 0; }
.auth-page { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: var(--canvas); }
.auth-art { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; background: radial-gradient(ellipse at 12% 20%, #e0dcf5 0%, transparent 55%), radial-gradient(ellipse at 88% 82%, #ddeaf4 0%, transparent 55%), #f4f5fa; }
.orbit { position: absolute; width: 760px; height: 760px; border: 1px solid #6258d91a; border-radius: 34%; transform: rotate(-32deg); }
.orbit-one { top: -460px; left: -150px; box-shadow: 0 0 0 70px #6258d904, 0 0 0 140px #6258d903; }
.orbit-two { right: -420px; bottom: -470px; width: 1000px; height: 1000px; border-width: 56px; border-color: #6258d906; }
.orbit-three { right: -360px; bottom: -410px; width: 1000px; height: 1000px; }
.auth-stage { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 24px 32px; }
.auth-card { width: 100%; max-width: 440px; padding: 40px 42px; background: var(--surface); border: 1px solid #ffffff; border-radius: 12px; box-shadow: 0 22px 70px #2d285315, 0 2px 8px #2d285307; }
.auth-brand { display: flex; align-items: center; gap: 12px; font-size: 17px; font-weight: 650; letter-spacing: .09em; margin-bottom: 34px; }
.brand-mark { width: 39px; height: 39px; border-radius: 10px; background: var(--accent); color: white; display: grid; place-items: center; font-size: 18px; letter-spacing: -1px; flex: none; }
.auth-brand small { display: block; font-size: 11px; font-weight: 400; color: var(--muted); letter-spacing: .015em; margin-top: 4px; }
h1 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -.65px; margin: 0 0 12px; overflow-wrap: break-word; }
p { line-height: 1.6; }
.auth-lead { color: var(--muted); margin: 0 0 27px; font-size: 14px; }
.auth-form label { display: block; font-size: 13px; font-weight: 600; margin: 20px 0 8px; }
input, select, button { font: inherit; }
.auth-form input:not([type=hidden]), .auth-form select { width: 100%; min-width: 0; min-height: 46px; border: 1px solid #b7bdcc; border-radius: 5px; background: white; color: var(--ink); padding: 11px 12px; font-size: 16px; }
.auth-form input:focus, .auth-form select:focus { border-color: var(--accent); }
.password-field { position: relative; }
.password-field input { padding-right: 82px !important; }
.password-toggle { position: absolute; right: 4px; top: 4px; min-height: 38px; padding: 0 8px; border: 0; background: white; color: var(--accent-hover); font-size: 12px; cursor: pointer; border-radius: 3px; }
[hidden] { display: none !important; }
.auth-button { display: flex; justify-content: center; align-items: center; gap: 10px; min-height: 46px; width: 100%; border: 1px solid transparent; border-radius: 5px; background: var(--accent); color: white; text-decoration: none; font-weight: 600; font-size: 14px; padding: 11px 16px; cursor: pointer; text-align: center; }
.auth-form .auth-button { margin-top: 26px; }
.auth-button:hover { background: var(--accent-hover); }
.auth-button.secondary { background: #fff; color: var(--accent-hover); border-color: var(--line); margin-top: 12px; }
.auth-button.secondary:hover { background: #f4f2ff; }
.auth-note { color: var(--muted); font-size: 12px; margin: 24px 0 0; }
.auth-signature { color: #65697f; font-size: 12px; margin: 22px 0 0; letter-spacing: .02em; }
.auth-footer { display: flex; justify-content: space-between; gap: 16px; padding: 18px 28px; font-size: 11px; color: #62687a; }
.validation-summary-valid { display: none; }
.validation-summary-errors { font-size: 13px; color: #982940; border-left: 3px solid #bc3d56; background: #fff3f4; border-radius: 3px; padding: 12px 14px; margin: 18px 0; line-height: 1.5; }
.validation-summary-errors ul { padding-left: 16px; margin: 0; }
.input-validation-error { border-color: #bc3d56 !important; }
.auth-status { display: inline-block; font-size: 11px; font-weight: 600; color: #7e3d54; background: #fbf0f4; border-radius: 4px; padding: 5px 8px; margin-bottom: 16px; }
.reference { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid #897ff4; outline-offset: 3px; }
.skip { position: fixed; top: -100px; left: 16px; padding: 12px; background: white; color: var(--accent-hover); z-index: 5; }
.skip:focus { top: 12px; }
@media (max-width: 520px) {
  .auth-stage { padding: 28px 16px 24px; }
  .auth-card { padding: 30px 26px; border-radius: 10px; }
  .auth-brand { margin-bottom: 28px; }
  .auth-footer { padding: 16px; font-size: 10px; }
}
@media (prefers-contrast: more) { :root { --muted: #373c4b; } .auth-card { border-color: var(--line); } }
@media (forced-colors: active) { .auth-button, .brand-mark, .auth-card { border: 1px solid ButtonText; } }
