/* =====================================================================
   로그인 화면 전용 스타일
   (공통 토큰·컴포넌트는 style.css 재사용)
   ===================================================================== */

/* 전체 화면 중앙 정렬 · 어두운 브랜드 배경 */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: radial-gradient(1200px 600px at 50% -10%, #2a2a52 0%, #14142a 60%, #101024 100%);
}
.login-wrap {
  width: 100%;
  max-width: 400px;
}

/* 상단 로고 */
.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  margin-bottom: 26px;
}
.login-logo .logo {
  width: 48px;
  height: 48px;
  font-size: 24px;
  border-radius: 13px;
}
.login-brand { text-align: left; }
.login-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #ffffff;
  line-height: 1.1;
}
.login-tagline {
  font-size: 12.5px;
  color: #a9adbd;
  margin-top: 2px;
}

/* 로그인 박스 */
.login-card {
  background: var(--card);
  border-radius: 16px;
  padding: 30px 28px 26px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.login-heading {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 20px;
}

/* 아이콘이 붙은 입력창 */
.ic-inp { position: relative; }
.ic-inp > .fas {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 14px;
  color: #9aa0ab;
  pointer-events: none;
}
.ic-inp .inp {
  padding-left: 40px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.ic-inp .inp:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.pw-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #9aa0ab;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.pw-toggle:hover { color: var(--accent); background: var(--accent-soft); }

/* 안내/오류 메시지 */
.login-msg {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--rose);
  background: #ffe9ee;
  border-radius: 9px;
  padding: 9px 12px;
  margin-bottom: 14px;
}
.login-msg .fas { margin-right: 6px; }

.login-btn { margin-top: 4px; }
.login-btn .fas { margin-right: 6px; }

/* 하단 메뉴 (회원가입 · 비밀번호 찾기) */
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 18px;
}
.login-links a {
  font-size: 13.5px;
  font-weight: 600;
  color: #c7cbd9;
  text-decoration: none;
}
.login-links a:hover { color: #ffffff; text-decoration: underline; }
.login-links .sep { width: 1px; height: 13px; background: rgba(255, 255, 255, .25); }

.login-note {
  margin-top: 22px;
  text-align: center;
  font-size: 11.5px;
  line-height: 1.6;
  color: #8b90a3;
}

/* ===== 회원가입 · 비밀번호 찾기 공용 ===== */

/* 살짝 넓은 카드(회원가입) */
.login-wrap.wide { max-width: 440px; }

/* 카드 상단 안내문 */
.card-hint {
  font-size: 12.5px;
  color: var(--sub);
  margin: -6px 0 18px;
  line-height: 1.55;
}

/* 계정 유형 선택 (학부모 / 학원·공부방) */
.type-seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}
.type-seg .opt {
  border: 1.5px solid var(--line);
  background: #f7f8fa;
  border-radius: 12px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: center;
  transition: .12s;
}
.type-seg .opt .fas { font-size: 18px; color: #9aa0ab; }
.type-seg .opt .ttl { font-size: 14px; font-weight: 700; margin-top: 6px; }
.type-seg .opt .sub { font-size: 11.5px; color: var(--sub); margin-top: 2px; }
.type-seg .opt:hover { border-color: #c7cbd9; }
.type-seg .opt.on {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.type-seg .opt.on .fas,
.type-seg .opt.on .ttl { color: var(--accent); }

/* 성공(신청 완료) 상태 */
.done-state { text-align: center; padding: 8px 4px 4px; }
.done-state .ico {
  width: 62px; height: 62px; border-radius: 50%;
  background: #e7f7f0; color: var(--green);
  display: grid; place-items: center; font-size: 28px;
  margin: 0 auto 16px;
}
.done-state h2 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.done-state p { font-size: 13px; color: var(--sub); line-height: 1.6; margin-bottom: 20px; }

/* 안내(성공) 메시지 톤 */
.login-msg.ok { color: #0f7a45; background: #e7f7f0; }

/* 아이디 + 중복확인 버튼 */
.id-row { display: flex; gap: 8px; align-items: stretch; }
.id-check-btn { flex: none; padding: 0 16px; white-space: nowrap; }
.id-status {
  font-size: 12px; font-weight: 600; margin-top: 7px;
}
.id-status.ok { color: #0f7a45; }
.id-status.bad { color: var(--rose); }
.id-status .fas { margin-right: 5px; }

/* 이용약관 동의 */
.agree-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 4px 0 18px;
}
.agree-all {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 800; cursor: pointer;
  padding-bottom: 10px; margin-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.agree-item {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 6px 0;
}
.agree-item label {
  display: flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer;
}
.agree-item .req { color: var(--accent); font-weight: 800; margin-right: 2px; }
.agree-box input[type="checkbox"] {
  width: 17px; height: 17px; accent-color: var(--accent);
  flex: none; cursor: pointer;
}
.agree-view {
  border: 0; background: transparent; color: var(--sub);
  font-size: 12px; font-weight: 600; cursor: pointer;
  text-decoration: underline; flex: none;
}
.agree-view:hover { color: var(--accent); }
.agree-text {
  font-size: 11.5px; color: var(--sub); line-height: 1.7;
  background: #f7f8fa; border-radius: 9px;
  padding: 11px 13px; margin: 4px 0 8px;
}
.agree-text .muted { color: #9aa0ab; }
