/* ============================================================
   CODI Login — 온라인문의(contact form) 동일 디자인
   ============================================================ */

/* ── 카드 (contact__wrap 기준) ── */
.login-card {
  background: #ffffff;
  border-radius: 30px;
  padding: clamp(32px, 4svh, 50px) clamp(28px, 3vw, 48px);
  width: 440px;
  max-width: calc(100vw - 40px);
  box-shadow: 0 0 30px rgba(0, 32, 98, 0.18);
}

/* ── 로고 ── */
.login-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: clamp(20px, 3svh, 32px);
}
.login-logo a  { display: inline-block; line-height: 0; }
.login-logo img { display: block; }
.login-logo__sub {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #999;
}

/* ── 타이틀 ── */
.login-heading {
  text-align: center;
  margin-bottom: clamp(20px, 3svh, 28px);
}
.login-title {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 1.875rem;
  font-weight: 700;
  color: #111;
  line-height: 1.3;
  margin: 0 0 8px;
}
.login-sub {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 400;
  color: #666;
  margin: 0;
}

/* ── 폼 ── */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── form-group (contact .form-group 동일) ── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

/* ── form-label (contact .form-label 동일) ── */
.form-label {
  display: flex;
  align-items: center;
  gap: 5px;
}
.form-label__text {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: #111;
  line-height: normal;
}
.form-label__required {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #2f6bff;
  border-radius: 50%;
}

/* ── form-input (contact .form-input 동일) ── */
.form-input {
  width: 100%;
  height: clamp(40px, 5svh, 49px);
  background: #f2f4f7;
  border-radius: 10px;
  padding: clamp(8px, 1.5svh, 15px) 20px;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #111;
  border: none;
  outline: none;
  transition: background 300ms ease;
  box-sizing: border-box;
}
.form-input::placeholder { color: #999; }
.form-input:focus {
  background: #e8edf5;
  outline: 2px solid #2f6bff;
  outline-offset: 0;
}

/* ── 에러 상태 (contact .form-group.is-error 동일) ── */
.form-group.is-error .form-input {
  outline: 2px solid #e0392b;
  outline-offset: 0;
  background: #fff5f5;
}
.form-error {
  display: none;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #e0392b;
  margin-top: -2px;
}
.form-group.is-error .form-error { display: block; }

/* ── 옵션 행 ── */
.login-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
}
.login-keep {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  user-select: none;
}
.login-keep__chk {
  width: 16px;
  height: 16px;
  accent-color: #2f6bff;
  cursor: pointer;
  flex-shrink: 0;
}
.login-keep__label {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #666;
}
.login-links { display: flex; gap: 14px; }
.login-link {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  color: #666;
  text-decoration: none;
  transition: color 300ms ease;
}
.login-link:hover { color: #2f6bff; }

/* ── 버튼 (contact .btn-submit 동일) ── */
.btn-login {
  width: 100%;
  padding: clamp(12px, 2svh, 20px);
  border: 2px solid #002572;
  border-radius: 50px;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-weight: 800;
  font-size: 1.375rem;
  color: #002572;
  text-align: center;
  background: #ffffff;
  cursor: pointer;
  line-height: 1.5;
  transition: background 300ms ease, color 300ms ease;
  margin-top: 8px;
}
.btn-login:hover {
  background: #002572;
  color: #ffffff;
}
.btn-login:focus-visible {
  outline: 3px solid #2f6bff;
  outline-offset: 3px;
}
.btn-login:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

/* ── 하단 안내 ── */
.login-help {
  font-family: 'Pretendard', -apple-system, sans-serif;
  text-align: center;
  font-size: 0.9375rem;
  font-weight: 400;
  color: #666;
  margin: clamp(16px, 2.5svh, 24px) 0 0;
  line-height: 1.6;
}
.login-help strong {
  color: #111;
  font-weight: 600;
}

/* ── 본인인증 (password_lost) ── */
.find-cert {
  margin-top: clamp(16px, 2.5svh, 24px);
  padding-top: clamp(16px, 2.5svh, 24px);
  border-top: 1px solid #e8edf5;
}
.find-cert__label {
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 0.875rem;
  font-weight: 500;
  color: #999;
  text-align: center;
  margin-bottom: 12px;
}
.find-cert__btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.btn-cert {
  flex: 1;
  padding: 12px;
  border: 1.5px solid #DDE3EA;
  border-radius: 10px;
  font-family: 'Pretendard', -apple-system, sans-serif;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #374151;
  background: #f2f4f7;
  cursor: pointer;
  transition: border-color 300ms ease, background 300ms ease;
  white-space: nowrap;
}
.btn-cert:hover {
  border-color: #2f6bff;
  background: #e8edf5;
  color: #002572;
}

/* ── 반응형 ── */
@media (max-width: 480px) {
  .login-card { padding: 32px 24px; border-radius: 20px; }
  .login-title { font-size: 1.5rem; }
  .login-sub   { font-size: 0.9375rem; }
  .btn-login   { font-size: 1.125rem; padding: 16px; }
  .login-options { flex-direction: column; align-items: flex-start; gap: 12px; }
  .find-cert__btns { flex-direction: column; }
  .btn-cert { flex: none; width: 100%; }
}
