/* Meeting Intelligence 로그인 화면 — 색 · 그림자는 tokens.css 의 var(--…) 만 (contracts.md §23 · login/DESIGN.md). */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-5);
  padding: var(--space-8) var(--space-4);
  background: var(--surface-base);
  color: var(--content-primary);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  line-height: var(--lh-sm);
  word-break: keep-all;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* 바탕 색 들판 두 점 — 글자 뒤에는 흰 카드 */
.fields { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.field { position: absolute; width: min(64vw, 640px); aspect-ratio: 1; border-radius: 50%; filter: blur(72px); }
.field--violet { background: var(--field-violet); top: -22%; left: -14%; }
.field--teal { background: var(--field-teal); right: -12%; bottom: -26%; }

.gate {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--card-w);
  padding: var(--space-10) var(--space-8) var(--space-8);
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}

.gate__head { text-align: center; margin-bottom: var(--space-8); }
.gate__mark {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-3);
  border-radius: var(--radius-control);
  background: var(--brand);
  color: var(--text-on-brand);
}
.gate__mark svg { width: 26px; height: 26px; }
.gate__name { margin: 0; font-size: var(--text-xl); line-height: var(--lh-xl); font-weight: var(--weight-semibold); letter-spacing: -0.01em; }
.gate__sub { margin: var(--space-1) 0 0; color: var(--content-muted); font-size: var(--text-13); line-height: var(--lh-13); }

.panel { animation: panel-in var(--duration-base) var(--ease-out-smooth); }
.panel[hidden] { display: none; }
.panel__title { margin: 0 0 var(--space-1); font-size: var(--text-lg); line-height: var(--lh-lg); font-weight: var(--weight-semibold); }
.panel__lede { margin: 0 0 var(--space-5); color: var(--content-muted); font-size: var(--text-13); line-height: var(--lh-13); }

.form { display: grid; gap: var(--space-4); }
.row { display: grid; }
.label { margin-bottom: var(--space-1-5); color: var(--content-secondary); font-size: var(--text-13); line-height: var(--lh-13); font-weight: var(--weight-medium); }

.input {
  width: 100%;
  height: var(--control-h);
  padding: 0 var(--space-3-5);
  border: 1px solid var(--border-input);
  border-radius: var(--radius-control);
  background: var(--surface-raised);
  color: var(--content-primary);
  font: inherit;
  font-size: var(--text-base);
  box-shadow: var(--shadow-xs);
  transition: border-color var(--duration-fast) var(--ease-out-smooth), box-shadow var(--duration-fast) var(--ease-out-smooth);
}
.input::placeholder { color: var(--content-muted); }
.input:hover { border-color: var(--border-input-hover); }
.input:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; border-color: var(--ring); }
.input[aria-invalid="true"] { border-color: var(--status-error); box-shadow: 0 0 0 3px var(--error-tint); }
.input--code { letter-spacing: 0.08em; text-transform: uppercase; }
.input--pw { padding-right: 52px; }

.pw { position: relative; }
.pw__toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--content-muted);
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out-smooth), color var(--duration-fast) var(--ease-out-smooth);
}
.pw__toggle:hover { background: var(--surface-hover); color: var(--content-primary); }
.pw__toggle:focus-visible { outline: 2px solid var(--ring); outline-offset: 1px; }
.eye { width: 18px; height: 18px; }
.pw__toggle .eye--shut { display: none; }
.pw__toggle[aria-pressed="true"] .eye--open { display: none; }
.pw__toggle[aria-pressed="true"] .eye--shut { display: block; }

.hint, .caps { margin: var(--space-1-5) 0 0; font-size: var(--text-xs); line-height: var(--lh-xs); }
.hint { color: var(--content-muted); }
.hint[data-state="bad"] { color: var(--status-error); }
.hint[data-state="ok"] { color: var(--status-ok-text); }
.caps { color: var(--status-warning-text); font-weight: var(--weight-medium); }
.caps[hidden] { display: none; }

.err { margin: 0; color: var(--status-error); font-size: var(--text-13); line-height: var(--lh-13); }
.err:empty { display: none; }
.note {
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-3-5);
  border-radius: var(--radius-md);
  background: var(--brand-subtle);
  color: var(--content-secondary);
  font-size: var(--text-13);
  line-height: var(--lh-13);
}
.note[hidden] { display: none; }

.btn {
  width: 100%;
  height: var(--button-h);
  margin-top: var(--space-1);
  border: 0;
  border-radius: var(--radius-control);
  font: inherit;
  font-size: var(--text-base);
  font-weight: var(--weight-semibold);
  cursor: pointer;
}
.btn--primary {
  background: var(--brand);
  color: var(--text-on-brand);
  transition: background-color var(--duration-fast) var(--ease-out-smooth), transform var(--duration-fast) var(--ease-out-smooth);
}
.btn--primary:hover { background: var(--brand-hover); }
.btn--primary:active { background: var(--brand-pressed); transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ring); outline-offset: 3px; }
.btn:disabled { cursor: progress; opacity: 0.72; }

.alt { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: var(--space-1); margin-top: var(--space-5); text-align: center; }
.alt__text { color: var(--content-muted); font-size: var(--text-13); }
.link {
  padding: var(--space-1) var(--space-1-5);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--link);
  font: inherit;
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
}
.link:hover { color: var(--link-hover); }
.link:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

.help { margin-top: var(--space-5); padding-top: var(--space-4); border-top: 1px solid var(--border-subtle); color: var(--content-muted); font-size: var(--text-13); line-height: var(--lh-13); text-align: center; }
.help summary { display: inline-block; padding: var(--space-1) var(--space-1-5); border-radius: var(--radius-sm); color: var(--content-secondary); cursor: pointer; list-style: none; text-decoration: underline dotted; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.help summary::-webkit-details-marker { display: none; }
.help summary:hover { color: var(--content-primary); }
.help summary:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
.help p { margin: var(--space-2) 0 0; }

.foot { position: relative; z-index: 1; margin: 0; color: var(--content-muted); font-size: var(--text-xs); line-height: var(--lh-xs); }

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@keyframes panel-in {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px), (pointer: coarse) {
  .pw__toggle { width: 44px; height: 44px; top: 2px; right: 2px; }   /* 탭 대상 44px — §11 의 규칙과 같게(T66 F6) · 입력 높이 48px 안에 */
}

@media (max-width: 480px) {
  body { justify-content: flex-start; padding: var(--space-6) var(--space-4); }
  .gate { padding: var(--space-8) var(--space-5) var(--space-6); }
  .field { width: 92vw; }
}

@media (prefers-reduced-motion: reduce) {
  .panel { animation: none; }
  .input, .pw__toggle, .btn--primary { transition: none; }
}
