/* ==================================================
  1. 폰트 / 기본 설정
================================================== */

@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;

  font-family: 'Pretendard', sans-serif;
}

body {
  min-height: 100vh;

  background: #eef3f8;
  color: #1f2937;
}

button,
input {
  font: inherit;
}

/* ==================================================
  2. 로그인 페이지 전체
================================================== */

.login-page {
  min-height: 100vh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;
}

/* ==================================================
  3. 로그인 카드
================================================== */

.login-card {
  width: min(100%, 420px);

  padding: 36px;

  border: 1px solid #dde7f1;
  border-radius: 18px;

  background: #ffffff;

  box-shadow: 0 18px 50px rgba(38, 66, 104, 0.12);
}

/* ==================================================
  4. 제목 영역
================================================== */

.login-heading {
  margin-bottom: 30px;
}

.login-kicker {
  display: block;

  margin-bottom: 6px;

  color: #4c8df6;

  font-size: 12px;
  font-weight: 800;
}

.login-heading h1 {
  margin-bottom: 8px;

  color: #18243a;

  font-size: 30px;
  font-weight: 900;
}

.login-heading p {
  color: #7b899b;

  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

/* ==================================================
  5. 입력 폼
================================================== */

.form-group {
  display: flex;
  flex-direction: column;

  gap: 8px;

  margin-bottom: 18px;
}

.form-group label {
  color: #344054;

  font-size: 13px;
  font-weight: 700;
}

.form-group input {
  width: 100%;
  height: 46px;

  padding: 0 13px;

  border: 1px solid #d0d5dd;
  border-radius: 10px;

  background: #ffffff;
  color: #101828;

  font-size: 13px;

  outline: none;

  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input::placeholder {
  color: #98a2b3;
}

.form-group input:focus {
  border-color: #4c8df6;

  box-shadow: 0 0 0 3px rgba(76, 141, 246, 0.12);
}

/* ==================================================
  6. 비밀번호 보기 / 숨기기
================================================== */

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 62px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;

  transform: translateY(-50%);

  padding: 6px 8px;

  border: none;
  border-radius: 7px;

  background: #f2f4f7;
  color: #64748b;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition: background 0.15s, color 0.15s;
}

.password-toggle:hover {
  background: #e9eef5;
  color: #344054;
}

.password-toggle:focus-visible {
  outline: 2px solid #4c8df6;
  outline-offset: 2px;
}

/* ==================================================
  7. 로그인 유지
================================================== */

.remember-row {
  display: inline-flex;
  align-items: center;

  gap: 7px;

  margin-bottom: 14px;

  color: #64748b;

  font-size: 12px;
  font-weight: 600;

  cursor: pointer;
}

.remember-row input {
  accent-color: #4c8df6;

  cursor: pointer;
}

/* ==================================================
  8. 오류 / 성공 메시지
================================================== */

.login-error {
  min-height: 18px;

  margin-bottom: 8px;

  color: #d95858;

  font-size: 12px;
  font-weight: 700;
}

.signup-success {
  min-height: 18px;

  margin-bottom: 8px;

  color: #15935a;

  font-size: 12px;
  font-weight: 700;
}

/* ==================================================
  9. 로그인 / 회원가입 버튼
================================================== */

.login-button {
  width: 100%;
  height: 46px;

  border: none;
  border-radius: 10px;

  background: #18243a;
  color: #ffffff;

  font-size: 14px;
  font-weight: 800;

  cursor: pointer;

  transition: background 0.15s, transform 0.15s;
}

.login-button:hover {
  background: #24324a;
}

.login-button:active {
  transform: translateY(1px);
}

.login-button:focus-visible {
  outline: 3px solid rgba(76, 141, 246, 0.35);
  outline-offset: 2px;
}

/* ==================================================
  10. 로그인 / 회원가입 화면 전환
================================================== */

.auth-view-hidden {
  display: none;
}

.auth-switch {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  margin-top: 20px;

  color: #667085;

  font-size: 13px;
  line-height: 1.4;
}

.auth-switch-button {
  padding: 2px 0;

  border: none;

  background: transparent;
  color: #3478f6;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;
}

.auth-switch-button:hover {
  text-decoration: underline;
}

/* ==================================================
  11. 회원가입 화면
================================================== */

#signupView .login-heading {
  margin-bottom: 24px;
}

#signupView .form-group {
  margin-bottom: 16px;
}

#signupView .login-button {
  margin-top: 6px;
}

#signupView .auth-switch {
  margin-top: 20px;
}

/* ==================================================
  12. 로그인 화면
================================================== */

#loginView .login-button {
  margin-top: 8px;
}

#loginView .auth-switch {
  margin-top: 22px;
}

/* ==================================================
  13. 모바일
================================================== */

@media (max-width: 430px) {
  .login-page {
    padding: 16px;
  }

  .login-card {
    padding: 26px 20px;

    border-radius: 16px;
  }

  .login-heading {
    margin-bottom: 24px;
  }

  .login-kicker {
    font-size: 11px;
  }

  .login-heading h1 {
    font-size: 25px;
  }

  .login-heading p {
    font-size: 12px;
  }

  .form-group {
    margin-bottom: 16px;
  }

  .form-group input {
    height: 44px;

    font-size: 12px;
  }

  .password-toggle {
    right: 7px;

    padding: 5px 7px;

    font-size: 10px;
  }

  .login-button {
    height: 44px;

    font-size: 13px;
  }

  .auth-switch {
    margin-top: 18px;

    font-size: 12px;
  }

  .auth-switch-button {
    font-size: 12px;
  }

  #signupView .login-heading {
    margin-bottom: 22px;
  }
}
