* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #101626; background: #f5f6f8; }
body { min-height: 100vh; }
.setup-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(420px, .9fr) minmax(520px, 1.1fr); }
.setup-brand { position: relative; overflow: hidden; min-height: 100vh; color: #fff; background: radial-gradient(circle at 20% 10%, rgba(255,118,44,.35), transparent 32%), radial-gradient(circle at 80% 78%, rgba(255,118,44,.16), transparent 34%), #0d1320; }
.setup-brand::after { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 42px 42px; mask-image: linear-gradient(to bottom, black, transparent 88%); }
.setup-brand-inner { position: relative; z-index: 1; min-height: 100%; display: flex; flex-direction: column; padding: clamp(34px, 5vw, 72px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; width: fit-content; color: inherit; text-decoration: none; }
.brand-mark { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: linear-gradient(145deg,#ff863f,#f45f13); font-weight: 950; box-shadow: 0 12px 30px rgba(244,95,19,.26); }
.brand-lockup strong, .brand-lockup small { display: block; }
.brand-lockup strong { font-size: .92rem; letter-spacing: .16em; }
.brand-lockup small { margin-top: 3px; color: rgba(255,255,255,.55); font-size: .56rem; font-weight: 800; letter-spacing: .17em; }
.brand-copy { margin: auto 0; max-width: 650px; }
.eyebrow { color: #f97b36; font-size: .65rem; font-weight: 950; letter-spacing: .16em; }
.brand-copy h1 { margin: 13px 0 15px; font-size: clamp(2.6rem, 5.2vw, 5.8rem); line-height: .92; letter-spacing: -.07em; }
.brand-copy p { max-width: 560px; margin: 0; color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.65; }
.security-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 10px; }
.security-grid div { padding: 14px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.035); backdrop-filter: blur(8px); }
.security-grid strong { display: block; font-size: .72rem; }
.security-grid span { display: block; margin-top: 4px; color: rgba(255,255,255,.48); font-size: .62rem; line-height: 1.35; }
.setup-panel { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; background: radial-gradient(circle at top right, rgba(255,122,49,.08), transparent 28%), #f7f8fa; }
.setup-card { width: min(520px,100%); padding: clamp(28px, 4vw, 44px); border: 1px solid #e2e5eb; border-radius: 24px; background: rgba(255,255,255,.96); box-shadow: 0 28px 80px rgba(19,27,43,.10); }
.setup-card h2 { margin: 9px 0 8px; font-size: 1.8rem; letter-spacing: -.05em; }
.setup-copy { margin: 0 0 20px; color: #6f7788; font-size: .82rem; line-height: 1.55; }
.identity-card { display: flex; align-items: center; gap: 11px; margin: 18px 0 22px; padding: 12px; border: 1px solid #e7e9ee; border-radius: 14px; background: #fafbfc; }
.identity-avatar { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; color: #b94c14; background: #fff0e6; font-size: .76rem; font-weight: 950; }
.identity-card strong, .identity-card small { display: block; }
.identity-card strong { font-size: .77rem; }
.identity-card small { margin-top: 3px; color: #7d8595; font-size: .64rem; }
.field { display: grid; gap: 7px; margin-top: 13px; color: #394152; font-size: .69rem; font-weight: 850; }
.setup-input { width: 100%; height: 45px; padding: 0 12px; border: 1px solid #dfe3e9; border-radius: 11px; outline: none; font: inherit; font-size: .8rem; background: #fff; transition: 150ms ease; }
.setup-input:focus { border-color: #f8a373; box-shadow: 0 0 0 3px rgba(255,106,26,.10); }
.password-wrap { position: relative; display: block; }
.password-wrap input { width: 100%; height: 45px; padding: 0 68px 0 12px; border: 1px solid #dfe3e9; border-radius: 11px; outline: none; font: inherit; font-size: .8rem; background: #fff; transition: 150ms ease; }
.password-wrap input:focus { border-color: #f8a373; box-shadow: 0 0 0 3px rgba(255,106,26,.10); }
.visibility-button { position: absolute; right: 7px; top: 7px; height: 31px; padding: 0 9px; border: 0; border-radius: 8px; color: #60697a; background: #f1f3f6; font-size: .63rem; font-weight: 850; }
.requirements { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.requirements span { padding: 5px 8px; border-radius: 999px; color: #7b8392; background: #f2f3f6; font-size: .59rem; font-weight: 800; }
.requirements span.is-valid { color: #137a50; background: #e9f8f1; }
.form-status { min-height: 22px; margin-top: 10px; color: #6d7584; font-size: .67rem; }
.form-status.is-error { color: #b63838; }
.setup-button { width: 100%; min-height: 45px; display: grid; place-items: center; margin-top: 8px; border: 1px solid #e35b11; border-radius: 11px; color: #fff; background: linear-gradient(180deg,#ff7a31,#f45f13); font-size: .76rem; font-weight: 900; text-decoration: none; box-shadow: 0 10px 24px rgba(244,95,19,.18); }
.setup-button--secondary { color: #1e2737; border-color: #dfe3e9; background: #fff; box-shadow: none; }
.setup-button:disabled { opacity: .55; cursor: not-allowed; }
.setup-state { display: grid; justify-items: center; text-align: center; padding: 32px 5px; }
.setup-state strong { margin-top: 13px; font-size: 1.05rem; }
.setup-state p { max-width: 350px; margin: 7px 0 16px; color: #757e8f; font-size: .72rem; line-height: 1.5; }
.spinner { width: 34px; height: 34px; border: 3px solid #eceef2; border-top-color: #f46a1b; border-radius: 50%; animation: spin .75s linear infinite; }
.state-icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; font-size: 1rem; font-weight: 950; }
.state-icon--success { color: #137a50; background: #e8f8f0; }
.state-icon--error { color: #b63838; background: #fff0f0; }
.setup-footer { margin: 18px 0 0; color: #9aa0ad; font-size: .6rem; font-weight: 800; letter-spacing: .06em; }
.is-hidden { display: none !important; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 900px) { .setup-shell { grid-template-columns: 1fr; } .setup-brand { min-height: 430px; } .setup-brand-inner { padding: 28px; } .brand-copy { margin: 70px 0; } .brand-copy h1 { font-size: clamp(2.5rem,12vw,4.4rem); } .security-grid { grid-template-columns: 1fr; } .setup-panel { min-height: auto; padding: 26px 16px 40px; } }
