/* 태동 로그인 화면 공통 모양 — 2026-10-15 세인 지시 "taedong.ai.kr/login 디자인으로 계정센터와
   연동된 로그인 폼을 다 바꿔라". 값은 tedong-group LoginForm.tsx(FIELD·FIELD_LABEL·BTN_MAIN·BTN_SUB)와 1:1.
   - 흰 바탕 · 가운데 TEDONG 글자 로고(196px) · 테두리 둥근 칸 · 떠오르는 라벨 · 둥근 주 버튼 · 글자 최소
   - 관리 화면(view-app)도 .field·.btn 을 쓰므로 여기는 전부 tl- 이름으로만 둔다(서로 안 건드림).
   - 같은 규칙이 authgate/server.js(관문 로그인)·controld/login.html 에도 복사돼 있다. 바꾸면 셋 다 바꾼다. */

.tl-wrap {
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  padding: 48px 24px 64px;
  background: #fff; color: #0b0e16;
}
.tl-box { width: 100%; max-width: 360px; }
.tl-logo { display: block; width: 196px; max-width: 100%; height: auto; margin: 0 auto; background: none; }  /* base.css 의 img 로드 전 회색 바탕을 끈다 */
/* 어느 서비스로 들어가는지 — 관문마다 다르다. 로고 바로 아래 작게 */
.tl-service { margin: 12px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: rgb(11 14 22 / .66); }
.tl-title { margin: 32px 0 0; text-align: center; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; color: #0b0e16; }
.tl-note { margin: 16px 0 0; text-align: center; font-size: 14px; line-height: 1.65; color: rgb(11 14 22 / .66); word-break: keep-all; overflow-wrap: anywhere; }
.tl-note strong { color: #0b0e16; }
.tl-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 40px; }
.tl-note + .tl-form { margin-top: 24px; }

/* 칸 — 높이 56 · 완전 둥근 · 남색 14% 테두리 · 누르면 남색 테두리 */
.tl-field { position: relative; }
.tl-input {
  box-sizing: border-box; display: block;
  width: 100%; height: 56px; margin: 0;
  border: 1px solid rgb(22 48 107 / .14); border-radius: 9999px;
  background: transparent;
  padding: 24px 24px 8px;
  font: inherit; font-size: 15px; line-height: 1.2; color: #0b0e16;
  outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s ease;
}
.tl-input:hover { border-color: rgb(11 14 22 / .3); }
.tl-input:focus { border-color: #16306b; }
.tl-input.tl-has-eye { padding-right: 56px; }
/* 떠오르는 라벨 — 빈 칸이면 가운데 15px, 누르거나 글자가 들어가면(자동완성 포함) 왼쪽 위 11px.
   빈 칸 판정에 placeholder=" " 가 필요하다. 라벨은 반드시 입력칸 바로 뒤에 둔다(+ 선택자). */
.tl-label {
  pointer-events: none; position: absolute; left: 24px; top: 50%; transform: translateY(-50%);
  font-size: 15px; line-height: 1; color: rgb(11 14 22 / .66);
  transition: top .2s ease-out, transform .2s ease-out, font-size .2s ease-out;
}
.tl-input:focus + .tl-label,
.tl-input:not(:placeholder-shown) + .tl-label,
.tl-input:-webkit-autofill + .tl-label { top: 10px; transform: none; font-size: 11px; font-weight: 500; }
@media (prefers-reduced-motion: reduce) { .tl-label { transition: none; } }
/* 칸 아래 도움말 — 칸 안쪽 글자선에 맞춘다 */
.tl-help { margin: -4px 0 0; padding: 0 24px; font-size: 13px; line-height: 1.5; color: rgb(11 14 22 / .66); }

/* 비밀번호 보기 — 눈 아이콘(보기) / 사선 그은 눈(숨기기) */
.tl-eye {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 0; border-radius: 9999px; background: none; color: rgb(11 14 22 / .66); cursor: pointer;
  transition: color .15s ease;
}
.tl-eye:hover { color: #0b0e16; }
.tl-eye .tl-eye-off { display: none; }
.tl-eye[aria-pressed="true"] .tl-eye-off { display: inline; }

/* 주 버튼 — 머리 '계정 만들기'와 같은 색. 올리거나 누르면 한 단계 짙게 */
.tl-btn {
  display: block; width: 100%; height: 56px; margin: 8px 0 0;
  border: 0; border-radius: 9999px; padding: 0 24px;
  background: #16306b; color: #fff;
  font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  transition: background-color .15s ease, transform .15s ease;
}
.tl-btn:hover, .tl-btn:active { background: #0e1c3e; }
.tl-btn:active { transform: scale(.98); }
.tl-btn:disabled { opacity: .5; cursor: default; transform: none; }
a.tl-btn { display: grid; place-items: center; text-decoration: none; }
.tl-btn-sub { background: rgb(22 48 107 / .07); color: #0b0e16; }
.tl-btn-sub:hover, .tl-btn-sub:active { background: rgb(22 48 107 / .11); }
.tl-btn:focus-visible, .tl-link:focus-visible, .tl-eye:focus-visible { outline: 2px solid #16306b; outline-offset: 2px; }

/* 아래 작은 링크 줄 — "비밀번호를 잊으셨나요?" 등 */
.tl-links { margin: 16px 0 0; text-align: center; font-size: 13px; line-height: 1.5; color: rgb(11 14 22 / .66); }
.tl-link {
  background: none; border: 0; margin: -8px 0; padding: 8px 2px;
  font: inherit; font-size: 13px; color: rgb(11 14 22 / .66); cursor: pointer;
  text-decoration: none; text-underline-offset: 4px;
  transition: color .15s ease;
}
.tl-link:hover { color: #0b0e16; text-decoration: underline; }

/* 오류 — 빨간 상자 대신 굵은 글자 한 줄(태동 로그인과 같게) */
.tl-error { margin: 0; padding: 0 24px; font-size: 14px; line-height: 1.5; font-weight: 700; color: #0b0e16; }
/* 알림(접수됨·메일 보냄) — 옅은 남색 바탕 */
.tl-ok { margin: 0; border-radius: 16px; background: rgb(22 48 107 / .045); padding: 12px 20px; text-align: center; font-size: 14px; line-height: 1.6; color: #0b0e16; }
.tl-form > .tl-ok { margin-bottom: 4px; }

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