/* Auth pages — design-import 로그인·회원가입 */
.auth-page body,
body.auth-page-body {
  min-height: 100%;
}

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
}

.brand {
  position: relative;
  background: var(--ink);
  color: oklch(0.86 0.01 40);
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 420px at 88% -8%, oklch(0.55 0.195 27 / 0.34), transparent 70%),
    radial-gradient(540px 460px at 4% 108%, oklch(0.45 0.10 250 / 0.20), transparent 70%);
  pointer-events: none;
}
.brand__top { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand__logo { height: 34px; width: auto; display: block; }
.brand .langsw { display: inline-flex; gap: 1px; background: oklch(0.30 0.008 40); border-radius: 8px; padding: 2px; }
.brand .langsw a,
.brand .langsw button {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: oklch(0.7 0.01 40);
  padding: 4px 9px;
  border-radius: 6px;
  line-height: 1.2;
}
.brand .langsw a.on,
.brand .langsw button.on { background: oklch(0.46 0.01 40); color: #fff; }
.brand__mid { position: relative; z-index: 1; margin: auto 0; max-width: 32ch; }
.brand__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: oklch(0.80 0.10 40);
  margin-bottom: 24px;
}
.brand__eyebrow::before { content: ""; width: 22px; height: 1.5px; background: var(--accent); }
.brand h1 {
  font-size: clamp(26px, 2.4vw, 36px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.brand h1 b { color: oklch(0.78 0.13 40); font-weight: 800; }
.brand__list,
.steps {
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.brand__list li,
.steps li { display: flex; align-items: flex-start; gap: 12px; font-size: 14.5px; line-height: 1.5; color: oklch(0.82 0.01 40); }
.brand__list svg,
.steps svg { flex-shrink: 0; margin-top: 2px; color: oklch(0.80 0.12 40); }
.steps__n {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: oklch(0.32 0.008 40);
  color: oklch(0.82 0.01 40);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.steps__t { display: flex; flex-direction: column; gap: 2px; }
.steps__t b { color: #fff; font-weight: 700; }
.steps__t span { font-size: 13px; color: oklch(0.72 0.01 40); }
.brand__bot { position: relative; z-index: 1; margin-top: auto; padding-top: 32px; font-size: 12px; color: oklch(0.58 0.01 40); }

.panel { display: flex; flex-direction: column; padding: 40px; overflow-y: auto; background: var(--bg); }
.panel__top { display: flex; justify-content: flex-end; align-items: center; gap: 14px; font-size: 13px; color: var(--ink-2); }
.panel__top a { font-weight: 600; color: var(--accent-ink); }
.panel__top a:hover { text-decoration: underline; }
.formwrap {
  margin: auto;
  width: 100%;
  max-width: 400px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.formwrap--wide { max-width: 460px; }
.formhead { margin-bottom: 28px; }
.formhead .eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-ink);
}
.formhead h2 { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; margin: 9px 0 6px; }
.formhead p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.5; }

.auth .field { margin-bottom: 16px; }
.auth .field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.auth .field label .req { color: oklch(0.58 0.18 18); margin-left: 2px; }
.auth .ipwrap { position: relative; }
.auth .field input,
.auth .field select,
.auth .field textarea {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 0 13px;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--surface);
  transition: border-color .15s, box-shadow .15s;
}
.auth .field input.has-icon { padding-left: 42px; }
.auth .field input.has-eye { padding-right: 46px; }
.auth .field input::placeholder { color: var(--ink-3); }
.auth .field input:focus,
.auth .field select:focus,
.auth .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.auth .field input.err,
.auth .field select.err { border-color: oklch(0.6 0.18 18); box-shadow: 0 0 0 4px oklch(0.6 0.18 18 / 0.12); }
.auth .field .msg { font-size: 11.5px; color: oklch(0.55 0.18 18); margin-top: 5px; min-height: 0; }
.auth .ip-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.auth .eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}
.auth .eye:hover { background: var(--surface-2); color: var(--ink-2); }
.auth .field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth .selwrap { position: relative; }
.auth .selwrap svg { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.auth .selwrap select { appearance: none; padding-right: 36px; width: 100%; cursor: pointer; }
.auth .pwhint { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; }

.auth .row-between { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 22px; }
.auth .check { display: inline-flex; align-items: center; gap: 9px; font-size: 13px; color: var(--ink-2); cursor: pointer; user-select: none; }
.auth .check input { width: 17px; height: 17px; accent-color: var(--accent); }
.auth .link { font-size: 13px; font-weight: 600; color: var(--accent-ink); }
.auth .link:hover { text-decoration: underline; }
.auth .btn--block { width: 100%; justify-content: center; }
.auth .btn--ghost { width: 100%; }
.auth .divider { display: flex; align-items: center; gap: 14px; margin: 24px 0; color: var(--ink-3); font-size: 12px; }
.auth .divider::before,
.auth .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth .swap { text-align: center; font-size: 13.5px; color: var(--ink-2); margin-top: 26px; }
.auth .swap a { font-weight: 700; color: var(--accent-ink); }
.auth .swap a:hover { text-decoration: underline; }
.auth .agree { display: flex; gap: 10px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); cursor: pointer; line-height: 1.5; margin: 4px 0 18px; }
.auth .agree input { width: 17px; height: 17px; margin-top: 1px; accent-color: var(--accent); flex-shrink: 0; }
.auth-err {
  padding: 12px 14px;
  border-radius: 10px;
  background: oklch(0.96 0.04 18);
  border: 1px solid oklch(0.85 0.08 18);
  color: oklch(0.45 0.16 18);
  font-size: 13px;
  margin-bottom: 16px;
}

.auth .done {
  margin: auto;
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}
.auth .done__ic {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: grid;
  place-items: center;
  margin: 0 auto 22px;
}
.auth .done h2 { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; margin: 0 0 10px; }
.auth .done p { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); margin: 0 0 8px; }
.auth .done .ref {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  margin: 18px 0 26px;
  color: var(--ink);
}

@media (max-width: 880px) {
  .auth { grid-template-columns: 1fr; }
  .brand { padding: 28px 28px 34px; }
  .brand__mid { margin: 22px 0; }
  .brand__list,
  .steps { display: none; }
  .brand__bot { display: none; }
  .panel { padding: 24px 24px 32px; }
  .panel__top {
    justify-content: center;
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 20px;
    padding-bottom: 0;
    font-size: 14px;
    line-height: 1.45;
    text-align: center;
  }
  .panel .formwrap {
    margin-top: 0;
    margin-bottom: auto;
  }
}
@media (max-width: 460px) {
  .auth .field--row { grid-template-columns: 1fr; }
}
