/* ===== 로그인 화면 =====
   랜딩(styles.css)의 브랜드 토큰(--purple, --lav 등)을 그대로 사용.
   카카오 로그인·전화번호 대조는 서버 연동 단계에서 붙임(지금은 화면·단계 전환만). */

.lg {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--lav) 0%, #ffffff 55%);
}
/* '로그인(선택)' 화면에서는 상단 연보라 배경을 제거(흰 배경) */
.lg.lg--nobg { background: #fff; }

.lg-main {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 20px;
}

.lg-card {
  width: 100%; max-width: 380px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(111, 95, 151, 0.12);
  padding: 36px 28px;
  text-align: center;
}

.lg-logo { display: inline-block; margin-bottom: 18px; }
.lg-logo-img { height: 44px; width: auto; }

.lg-title { font-size: 1.35rem; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.lg-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 24px; line-height: 1.55; }

/* 카카오 로그인 버튼 (카카오 브랜드 색) */
.lg-kakao {
  width: 100%;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; margin-bottom: 10px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  color: #3c2e2e; background: #fee500;
  border: none; border-radius: 12px; cursor: pointer;
}
.lg-kakao:hover { filter: brightness(0.97); }
.lg-kakao:disabled { opacity: 0.6; cursor: default; }
.lg-kakao__icon { display: inline-flex; }

.lg-back {
  display: inline-block; margin-top: 6px;
  font-size: 0.82rem; color: var(--muted);
}
.lg-back:hover { color: var(--purple); }
.lg-back--btn { background: none; border: none; cursor: pointer; font-family: inherit; margin-top: 12px; }

/* 전화번호 입력 */
.lg-field { display: block; text-align: left; margin-bottom: 4px; }
.lg-field__label { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.lg-input {
  width: 100%; padding: 13px 14px;
  font-family: inherit; font-size: 1.05rem; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  text-align: center; letter-spacing: 0.5px;
}
.lg-input:focus { outline: none; border-color: var(--purple-2); box-shadow: 0 0 0 3px var(--lav-2); }
.lg-error { color: #d9534f; font-size: 0.8rem; margin: 8px 0 0; text-align: left; }

/* 기본 강조 버튼 */
.lg-primary {
  width: 100%; display: block; margin-top: 16px;
  padding: 14px;
  font-family: inherit; font-size: 0.95rem; font-weight: 600; text-align: center;
  color: #fff; background: linear-gradient(135deg, var(--purple-2), var(--purple));
  border: none; border-radius: 12px; cursor: pointer;
}
.lg-primary:hover { filter: brightness(1.04); }
.lg-primary--link { text-decoration: none; }

/* 완료 / 미등록 배지 */
.lg-badge {
  width: 56px; height: 56px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; font-size: 1.6rem; font-weight: 700;
}
.lg-badge--ok { background: #e9f3ec; color: #4e9c68; }
.lg-badge--no { background: #fdecea; color: #d9534f; }

/* 관리자(강사) 부트스트랩 — 관리자가 하나도 없을 때만 노출 */
.lg-adminclaim { margin-top: 18px; font-size: 0.8rem; color: var(--muted); }
.lg-adminclaim__btn {
  font-family: inherit; font-size: 0.8rem; font-weight: 600;
  color: var(--purple); background: none; border: none;
  padding: 0; cursor: pointer; text-decoration: underline;
}
.lg-adminclaim__btn:hover { filter: brightness(0.92); }

/* 개인정보 수집·이용 동의 (필수) — 체크해야 카카오 로그인 활성화 */
.lg-consent {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin: 2px 0 14px; padding: 10px 12px;
  background: var(--lav); border: 1px solid var(--line); border-radius: 10px;
  text-align: left; cursor: pointer;
}
.lg-consent__text { font-size: 0.76rem; color: var(--ink); line-height: 1.45; }
.lg-consent__text b { color: var(--purple); font-weight: 700; }
.lg-consent__link { color: var(--purple); text-decoration: underline; text-underline-offset: 2px; font-weight: 600; }
.lg-consent__link:hover { filter: brightness(0.92); }
.lg-consent__box { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--purple); cursor: pointer; }

.lg-foot { margin-top: 22px; font-size: 0.76rem; color: var(--muted); }

@media (max-width: 420px) {
  .lg-card { padding: 30px 20px; }
}
