@charset "UTF-8";
:root { color-scheme: dark; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Pretendard", sans-serif; font-synthesis: none; background: #050914; color: #e7edf6; }
* { box-sizing: border-box; }
body { position: relative; isolation: isolate; min-width: 320px; min-height: 100svh; margin: 0; padding: 28px; display: grid; place-items: center; background: radial-gradient(ellipse at 18% 80%, #19334c55, transparent 55%), radial-gradient(ellipse at 85% 15%, #34285840, transparent 50%), #050914; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button, input, a { -webkit-tap-highlight-color: transparent; }
p, h1 { margin: 0; }
::selection { background: #3c5374; }
.auth-frame { position: relative; z-index: 1; width: min(740px, 100%); display: grid; grid-template-columns: 300px minmax(0, 1fr); overflow: hidden; background: #0e1828; border: 1px solid #ffffff14; border-radius: 16px; box-shadow: 0 24px 80px #00000055; animation: appear .25s both; }
.brand-visual { min-height: 440px; display: flex; align-items: flex-end; overflow: hidden; padding-top: 24px; background: linear-gradient(145deg, #17283c, #0a1320); }
.brand-visual img { width: 100%; height: 416px; object-fit: contain; object-position: center bottom; }
.auth-content { padding: 36px; align-self: center; }
.brand-wordmark { width: 142px; height: auto; mix-blend-mode: screen; }
#space { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 30px; }
h1 { font-size: 24px; font-weight: 650; letter-spacing: -.04em; line-height: 1.35; }
.description { margin-top: 9px; color: #9aa8bc; font-size: 12px; line-height: 1.8; }
form { margin-top: 25px; }
label { display: block; color: #bdc9d8; font-size: 12px; font-weight: 550; margin-bottom: 9px; }
input { display: block; width: 100%; height: 46px; border: 1px solid #344258; border-radius: 8px; background: #111e30; padding: 0 12px; color: #e6edf6; font-size: 14px; transition: border-color .15s, box-shadow .15s; }
input::placeholder { color: #8292a8; }
input:focus { outline: none; border-color: #899fbf; box-shadow: 0 0 0 3px #718cb21a; }
button { display: block; width: 100%; min-height: 46px; margin-top: 14px; border: 1px solid #c9a361; border-radius: 8px; padding: 12px; background: #d4af6a; color: #111b2a; font-size: 13px; font-weight: 650; cursor: pointer; transition: background .15s, transform .15s; }
button:hover { background: #e5c181; }
button:active { transform: translateY(1px); }
button:focus-visible, a:focus-visible { outline: 2px solid #d4af6a; outline-offset: 4px; }
.code-input { font: 23px ui-monospace, monospace; text-align: center; letter-spacing: .32em; }
.field-hint { margin-top: 9px; font-size: 11px; line-height: 1.7; color: #96a7bd; }
.back-link { display: inline-block; font-size: 11px; color: #96a7bd; margin-top: 19px; }
.back-link:hover { color: #d4af6a; text-decoration: underline; text-underline-offset: 4px; }
.identity { margin-top: 22px; padding: 14px; border: 1px solid #314157; border-radius: 8px; background: #142237; }
.identity-email { font-size: 13px; color: #e1e9f4; overflow-wrap: anywhere; }
.identity > span { display: inline-block; margin-top: 7px; color: #a6b5c8; font-size: 11px; }
.secondary { background: #152439; color: #d9e3f0; border-color: #40516a; }
.secondary:hover { background: #223751; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 640px) {
  body { padding: 20px; }
  .auth-frame { max-width: 360px; grid-template-columns: minmax(0, 1fr); border-radius: 14px; }
  .brand-visual { min-height: 0; height: 194px; justify-content: center; padding: 12px 0 0; }
  .brand-visual img { height: 240px; width: 180px; transform: translateY(51px); object-position: center top; }
  .auth-content { padding: 26px; width: 100%; }
  .brand { margin-bottom: 23px; }
  h1 { font-size: 22px; }
  .description { font-size: 11px; }
  .code-input { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.error-status { margin-bottom: 8px; color: #e0bb79; font: 600 13px ui-monospace, monospace; }
.error-action { display: inline-flex; align-items: center; min-height: 42px; margin-top: 22px; padding: 8px 14px; border: 1px solid #40516a; border-radius: 8px; font-size: 13px; background: #152439; color: #e4ebf6; }
.error-action:hover { background: #223751; }
