@font-face { font-family: Foruner; src: url('../assets/v4/Foruner.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
:root { --st-background: #E7F2F1; --st-surface: #DDF6F4D9; --st-ink: #082D45; --st-secondary: #315A70; --st-nav-height: 88px; }
html, body { margin: 0; min-height: 100%; background: var(--st-background); }
body { background-image: url('../assets/v4/background.jpg'); background-size: cover; background-position: center; background-attachment: fixed; }
*, *::before, *::after { box-sizing: border-box; }
button, input, select, textarea { font-family: var(--st-font-body); }
button:disabled { opacity: .55; cursor: not-allowed; }
:focus-visible { outline: 3px solid var(--st-ink); outline-offset: 4px; }
.v4-header { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.v4-header h1 { font-family: var(--st-font-display); font-weight: 400; font-size: clamp(24px, 7vw, 32px); overflow-wrap: anywhere; margin: 0; }
.v4-header p { color: var(--st-neon); margin: 6px 0 0; }
.v4-back { display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 14px; background: var(--st-card-bg); text-decoration: none; }
.v4-card { padding: 20px; border: 1px solid #ffffff99; border-radius: 20px; background: var(--st-card-bg); color: var(--st-ink); }
.v4-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 20px; border: 0; border-radius: 16px; background: var(--st-neon); color: var(--st-ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.v4-button--secondary { background: var(--st-surface); }
.v4-tabs { display: flex; gap: 6px; margin-bottom: 24px; padding: 6px; background: var(--st-card-bg); border-radius: 18px; }
.v4-tabs a { flex: 1; min-width: 0; min-height: 44px; display: grid; place-items: center; border-radius: 12px; text-decoration: none; font-size: 13px; font-weight: 700; color: var(--st-secondary); }
.v4-tabs a.active { background: var(--st-neon); color: var(--st-ink); }
.v4-state { display: grid; gap: 12px; }
.v4-state p { margin: 0; }
.v4-state--error { border-color: #b42318; }
.v4-loading { display: grid; gap: 12px; }
.v4-loading .st-skeleton { height: 100px; }
.auth-main { min-height: 100dvh; display: flex; align-items: stretch; }
.auth-page, .not-found-page { width: min(100%, 430px); min-height: 100dvh; margin: 0 auto; padding: 56px 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.auth-heading { display: grid; gap: 5px; }
.auth-heading h1 { margin: 0; color: var(--st-ink); font: 400 25px/1.3 var(--st-font-display); }
.auth-heading p { margin: 0; color: var(--st-neon); font: 500 12px/1.3 var(--st-font-display); }
.auth-card { display: grid; gap: 14px; padding: 16px; border: 1px solid #123D3226; border-radius: 20px; background: var(--st-card-bg); color: var(--st-ink); box-shadow: 0 10px 24px #123d3210; }
.auth-intro { display: grid; gap: 10px; padding: 16px; border: 1px solid #123D3226; border-radius: 20px; background: var(--st-card-bg); }
.auth-intro img, .not-found-card img { object-fit: contain; }
.auth-intro h2, .not-found-card h2 { margin: 0; color: var(--st-ink); font: 400 27px/1.3 var(--st-font-display); }
.auth-intro--compact h2 { font-size: 18px; }
.auth-intro p, .not-found-card p { margin: 0; color: var(--st-secondary); font-size: 12px; font-weight: 500; line-height: 1.45; }
.field-group { display: grid; gap: 6px; }
.field-label { color: var(--st-secondary); font-size: 12px; font-weight: 600; }
.field-input { width: 100%; height: 44px; padding: 12px; border: 1px solid transparent; border-radius: 20px; background: var(--st-card-bg); color: var(--st-ink); font-size: 14px; }
.field-input:focus { border-color: var(--st-ink); box-shadow: none; outline: 2px solid var(--st-ink); outline-offset: 1px; }
.validation-message, .auth-error { color: #8a241c; font-size: 12px; font-weight: 600; }
.auth-error { padding: 10px 12px; border-radius: 14px; background: #fff0ee; }
.form-actions { display: grid; }
.auth-primary, .auth-secondary { width: 100%; min-height: 46px; display: grid; place-items: center; padding: 12px; border: 0; border-radius: 14px; color: var(--st-ink); font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.auth-primary { background: var(--st-neon); }
.auth-secondary { background: #FFFFFF80; }
.auth-switch { margin: 0; color: var(--st-secondary); font-size: 12px; font-weight: 500; }
.not-found-page { justify-content: center; }
.not-found-card { gap: 10px; }
@media (max-width: 360px) { .auth-page, .not-found-page { padding: 32px 16px 20px; } .auth-intro h2, .not-found-card h2 { font-size: 23px; } }
.skip-link { position: fixed; top: -100px; left: 12px; z-index: 1100; padding: 12px; background: var(--st-neon); color: var(--st-ink); }
.skip-link:focus { top: 12px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
