/* ============================================================
   WOS — Sign in. Shared form components on warm paper.
   Reuses tokens from styles.css.
   ============================================================ */
.lang-ko{display:none;}
[data-lang="ko"] .lang-ko{display:inline;}
[data-lang="ko"] .lang-en{display:none;}
[data-lang="ko"] [data-kw]{word-break:keep-all;}

.si-page{min-height:100vh;display:flex;flex-direction:column;}
.si-mini{display:flex;align-items:center;gap:14px;padding:22px clamp(20px,4vw,40px);}
.si-mini .brand{display:flex;align-items:center;gap:10px;font-weight:700;font-size:18px;letter-spacing:-0.02em;color:var(--ink);}
.si-mini .brand .spark{width:21px;height:21px;color:var(--ink);}
.si-mini .brand .serif{font-weight:500;font-size:19px;}
.si-mini .brand .tag{font-size:10px;letter-spacing:.14em;color:var(--text-2);border:1px solid var(--border-2);border-radius:5px;padding:2px 6px;font-weight:600;}
.si-mini .spacer{flex:1;}
.toggle{display:inline-flex;align-items:center;border:1px solid var(--border-2);border-radius:999px;padding:3px;background:var(--surface);}
.toggle button{border:0;background:none;color:var(--muted);cursor:pointer;font:inherit;font-size:12px;font-weight:600;padding:5px 11px;border-radius:999px;transition:all .2s;line-height:1;}
.toggle button.on{background:var(--ink);color:var(--bg);}
.si-mini .back{font-size:13px;color:var(--text-2);font-weight:500;display:flex;align-items:center;gap:6px;}
.si-mini .back:hover{color:var(--accent);}
.si-mini .back svg{width:14px;height:14px;}

/* ---- form atoms ---- */
.si-eyebrow{font-size:12.5px;letter-spacing:.14em;text-transform:uppercase;color:var(--accent);font-weight:600;margin:0 0 16px;display:inline-flex;align-items:center;gap:9px;}
.si-eyebrow::before{content:"";width:22px;height:1px;background:var(--accent);opacity:.6;}
.si-title{font-size:clamp(28px,3.4vw,40px);font-weight:400;letter-spacing:-0.02em;line-height:1.08;margin:0 0 10px;}
.si-sub{color:var(--text-2);font-size:15.5px;margin:0 0 28px;line-height:1.5;}
.si-sub a{color:var(--accent);font-weight:600;}

.field{margin-bottom:16px;}
.field label{display:block;font-size:13px;font-weight:600;color:var(--text-2);margin-bottom:8px;}
.field .wrap{position:relative;display:flex;align-items:center;width:100%;}
.field .wrap input{min-width:0;}
.field .wrap .ic{position:absolute;left:14px;width:17px;height:17px;color:var(--muted);pointer-events:none;}
.field input{width:100%;font:inherit;font-size:15px;color:var(--text);background:var(--surface);
  border:1px solid var(--border-2);border-radius:11px;padding:13px 14px 13px 42px;transition:border-color .18s,box-shadow .18s;}
.field input::placeholder{color:var(--muted);}
.field input:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-soft);}
.field .reveal{position:absolute;right:8px;background:none;border:0;color:var(--muted);cursor:pointer;padding:7px;border-radius:8px;display:grid;place-items:center;}
.field .reveal:hover{color:var(--text-2);background:var(--surface-2);}
.field .reveal svg{width:17px;height:17px;}

.row-between{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:4px 0 22px;}
.checkline{display:flex;align-items:center;gap:9px;font-size:13.5px;color:var(--text-2);cursor:pointer;user-select:none;}
.checkline input{width:16px;height:16px;accent-color:var(--accent);}
.forgot{font-size:13.5px;color:var(--accent);font-weight:600;}
.forgot:hover{text-decoration:underline;}

/* Scoped to the sign-in card (.ed) so these don't override the shared Nav's
   .btn — the global width:100% was stretching the nav login button and
   crushing the menu button (메뉴 wrapped to two lines). */
.ed .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;cursor:pointer;font:inherit;font-size:15px;font-weight:600;
  line-height:1;padding:14px 18px;border-radius:11px;border:1px solid transparent;transition:all .18s;width:100%;}
.ed .btn svg{width:17px;height:17px;}
.ed .btn-primary{background:var(--ink);color:var(--bg);}
.ed .btn-primary:hover{background:var(--accent-btn-h);}
.ed .btn-oauth{background:var(--surface);color:var(--text);border:1px solid var(--border-2);}
.ed .btn-oauth:hover{border-color:var(--accent);}
.ed .btn-oauth svg{width:18px;height:18px;}
.ed .btn-google{background:var(--surface);color:var(--text);border:1px solid var(--border-2);}
.ed .btn-google:hover{border-color:var(--accent);}
.ed .btn-google .g{width:18px;height:18px;}

.divider{display:flex;align-items:center;gap:14px;margin:22px 0;color:var(--muted);font-size:12.5px;}
.divider::before,.divider::after{content:"";flex:1;height:1px;background:var(--border);}
.oauth-row{display:grid;grid-template-columns:1fr 1fr;gap:10px;}
@media(max-width:380px){ .oauth-row{grid-template-columns:1fr;} }

.si-foot{margin-top:26px;font-size:13.5px;color:var(--text-2);}
.si-foot a{color:var(--accent);font-weight:600;}
.legal{margin-top:18px;font-size:12px;color:var(--muted);line-height:1.5;}
.legal a{color:var(--text-2);text-decoration:underline;}

/* badge chips for trust */
.trust{display:flex;gap:8px;flex-wrap:wrap;margin-top:22px;}
.trust span{display:inline-flex;align-items:center;gap:7px;font-size:12px;color:var(--text-2);border:1px solid var(--border);background:var(--surface);border-radius:999px;padding:6px 12px;}
.trust svg{width:13px;height:13px;color:var(--accent);}
