/* ── 온보딩(welcome / login / nickname) ─ vote.css 와 동일한 블루 다크 톤 ── */
:root {
    --blue:      #1A6BFF;
    --blue-soft: #6E9EFF;
    --blue-glow: rgba(26, 107, 255, 0.25);
    --ink:       #06090F;
    --ink-mid:   #1A2030;
    --ink-card:  #0E1420;
    --text:      rgba(255, 255, 255, 0.85);
    --text-dim:  rgba(255, 255, 255, 0.45);
    --line:      rgba(255, 255, 255, 0.10);
    --ok:        #44DD88;

    --field-h:   56px;   /* 모든 input / button 통일 높이 */
    --radius:    14px;
}

/* 리셋·박스사이징·폰트·탭하이라이트는 common.css. 여기선 다크 테마 배경/색만. */
html, body {
    height: 100%;
    background: var(--ink); color: var(--text);
}

/* ── 페이지 래퍼 ── */
.ob-page {
    position: relative;
    min-height: 100dvh;
    padding: calc(env(safe-area-inset-top, 0) + 24px) 24px calc(env(safe-area-inset-bottom, 0) + 24px);
    display: flex; justify-content: center;
    overflow-x: hidden;   /* 가로(글로우)만 클립. 세로는 스크롤 허용 — 모바일 키패드 시 입력칸이 보이게 */
}
/* vote.css 와 같은 상단 블루 글로우 */
.ob-page::before {
    content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
    background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(26,107,255,0.28) 0%, transparent 65%);
}

.ob-wrap {
    position: relative; z-index: 1;
    width: 100%; max-width: 480px;
    display: flex; flex-direction: column;
}

/* ── 상단 바 (login / nickname) ── */
.ob-topbar {
    display: flex; align-items: center; justify-content: space-between;
    margin: -8px 0 24px;
}
.ob-back {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    color: var(--text); text-decoration: none; border-radius: 12px;
    transition: background .15s ease;
}
.ob-back:active { background: var(--line); }
.ob-topbar__title { font-size: 14px; font-weight: 700; color: var(--text-dim); letter-spacing: 0.3px; }
.ob-topbar__pad { width: 40px; }

/* ── 랜딩 hero ── */
.ob-hero {
    padding: 56px 0 32px;
    flex: 1;
    display: flex; flex-direction: column; justify-content: center;
}
.ob-brand { margin-bottom: 32px; }
.ob-brand img { height: 32px; filter: brightness(0) invert(1); }
.ob-title {
    font-size: 32px; line-height: 1.25; margin: 0 0 14px;
    font-weight: 700; color: #fff; letter-spacing: -0.6px;
}
.ob-sub {
    font-size: 15px; color: var(--text-dim); line-height: 1.65; margin: 0;
}

/* ── 단계 타이틀 (login / nickname) ── */
.ob-step-title {
    font-size: 24px; line-height: 1.35; margin: 8px 0 8px;
    font-weight: 700; color: #fff; letter-spacing: -0.4px;
}
.ob-step-sub {
    font-size: 13px; color: var(--text-dim);
    margin: 0 0 28px; line-height: 1.6;
}

/* ── 폼 ── */
.ob-form {
    display: flex; flex-direction: column; gap: 14px;
}
.ob-field {
    display: flex; flex-direction: column; gap: 6px;
}
.ob-label {
    font-size: 11px; font-weight: 700; color: var(--text-dim);
    padding-left: 4px; text-transform: uppercase; letter-spacing: 0.4px;
}
.ob-field input {
    appearance: none;
    width: 100%; height: var(--field-h);
    padding: 0 18px;
    background: rgba(255,255,255,0.04);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    color: #fff; font-size: 15px; font-weight: 600;
    outline: none; font-family: inherit;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.ob-field input::placeholder { color: rgba(255,255,255,0.28); font-weight: 500; }
.ob-field input:focus {
    border-color: var(--blue-soft);
    background: rgba(26,107,255,0.06);
    box-shadow: 0 0 0 4px rgba(26,107,255,0.10);
}
.ob-field input:disabled { opacity: 0.5; cursor: not-allowed; }

/* input + inline action button (예: 중복확인) */
.ob-field-row { display: flex; gap: 8px; width: 100%; }
.ob-field-row input { flex: 1; min-width: 0; }
.ob-btn-inline {
    flex-shrink: 0;
    height: var(--field-h);
    padding: 0 16px;
    background: rgba(255,255,255,0.06);
    color: var(--text);
    border: 1.5px solid var(--line);
    border-radius: var(--radius);
    font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.ob-btn-inline:active { transform: scale(0.97); background: rgba(255,255,255,0.10); }
.ob-btn-inline[disabled] { opacity: 0.45; pointer-events: none; }

/* ── 인증번호 블록 ── */
.ob-code-block {
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 4px; padding-top: 18px;
    border-top: 1px solid var(--line);
}
.ob-code-block[hidden] { display: none; }   /* HTML [hidden] 가 class 보다 우선되도록 */
.ob-timer {
    font-variant-numeric: tabular-nums;
    color: var(--blue-soft); font-size: 13px; font-weight: 700;
    padding-left: 4px;
}
.ob-link {
    align-self: flex-start;
    background: none; border: none;
    color: var(--text-dim); font-size: 13px; text-decoration: underline;
    padding: 6px 4px; cursor: pointer; font-family: inherit;
}
.ob-link[disabled] { opacity: 0.4; cursor: not-allowed; }

/* ── 버튼 (input 과 동일 높이) ── */
.ob-actions {
    display: flex; flex-direction: column; gap: 10px; margin-top: 28px;
}
.ob-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 100%; height: var(--field-h);
    padding: 0 18px;
    border: none; border-radius: var(--radius);
    font-size: 15px; font-weight: 700; letter-spacing: -0.2px;
    text-decoration: none; cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease, opacity .15s ease, border-color .15s ease;
    font-family: inherit;
    position: relative; overflow: hidden;
}
.ob-btn:active { transform: scale(0.98); }
.ob-btn[disabled] { opacity: 0.45; pointer-events: none; }

.ob-btn--primary {
    background: var(--blue); color: #fff;
    box-shadow: 0 8px 24px var(--blue-glow);
}
.ob-btn--primary:active { box-shadow: 0 4px 12px var(--blue-glow); }
/* vote.css .btn-start 와 동일한 광택 shimmer */
.ob-btn--primary::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.16) 50%, transparent 70%);
    transform: translateX(-100%);
    animation: ob-shimmer 2.4s ease-in-out 0.8s infinite;
}
.ob-btn--primary[disabled]::after { animation: none; }
@keyframes ob-shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.ob-btn--secondary {
    background: rgba(255,255,255,0.05);
    color: var(--text);
    border: 1.5px solid var(--line);
}
.ob-btn--secondary:active { background: rgba(255,255,255,0.08); }

.ob-btn--ghost {
    background: transparent; color: var(--text);
    border: 1.5px solid var(--line);
}
.ob-btn--ghost:active { background: rgba(255,255,255,0.04); }

/* ── 메시지 ── */
.ob-msg {
    min-height: 20px;
    font-size: 13px; color: var(--blue-soft); font-weight: 600;
    padding-left: 4px; margin-top: 4px; line-height: 1.5;
}
.ob-msg.ok { color: var(--ok); }
.ob-msg.error { color: #FF6B6B; }

/* ── 약관 ── */
.ob-terms {
    color: var(--text-dim); font-size: 12px;
    text-align: center; margin: 18px 0 0; line-height: 1.7;
}
.ob-terms a {
    color: var(--text); text-decoration: underline; text-underline-offset: 2px;
}
