/* login.css: 로그인 화면 및 인증 요청. 공통 선택자 변경 시 다른 화면의 영향도 확인한다. */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    "Pretendard",
    "Noto Sans KR",
    Arial,
    sans-serif;

  background:
    radial-gradient(
      circle at 50% 10%,
      #ffffff 0,
      #f6f8fb 38%,
      #eef1f5 100%
    );

  color: #1d2430;
}

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

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

  padding: 32px 20px;
}

.login-card {
  width: 100%;
  max-width: 440px;

  background: rgba(255, 255, 255, 0.96);

  border: 1px solid #e5e8ed;
  border-radius: 22px;

  box-shadow:
    0 24px 60px rgba(35, 43, 55, 0.10);

  padding: 46px 42px 36px;
}

.brand {
  text-align: center;
  margin-bottom: 34px;
}

.eyebrow {
  margin: 0 0 10px;

  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;

  color: #7b8492;
}

.brand h1 {
  margin: 0;

  font-size: 29px;
  line-height: 1.35;

  letter-spacing: -0.04em;

  color: #171c24;
}

.subtitle {
  margin: 12px 0 0;

  font-size: 14px;
  line-height: 1.6;

  color: #7b8492;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 19px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 13px;
  font-weight: 700;

  color: #454d59;
}

.field input {
  width: 100%;
  height: 52px;

  border: 1px solid #d8dde5;
  border-radius: 12px;

  background: #ffffff;

  padding: 0 15px;

  font-size: 15px;
  color: #1c222b;

  outline: none;

  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.field input::placeholder {
  color: #b0b7c1;
}

.field input:focus {
  border-color: #727d8d;

  box-shadow:
    0 0 0 3px rgba(72, 84, 101, 0.09);
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 70px;
}

.password-toggle {
  position: absolute;

  top: 50%;
  right: 11px;

  transform: translateY(-50%);

  border: 0;
  background: transparent;

  padding: 7px 8px;

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

  color: #697384;

  cursor: pointer;
}

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

  margin-top: -5px;

  font-size: 13px;
  text-align: center;

  color: #d64444;
}

.login-button {
  height: 54px;

  border: 0;
  border-radius: 12px;

  background: #222a35;

  color: #ffffff;

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

  cursor: pointer;

  transition:
    background 0.18s ease,
    transform 0.08s ease;
}

.login-button:hover {
  background: #141a22;
}

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

.signup-area {
  margin-top: 28px;
  padding-top: 23px;

  border-top: 1px solid #eceef2;

  text-align: center;

  font-size: 13px;

  color: #8a929e;
}

.signup-area a {
  margin-left: 6px;

  color: #343d4b;

  font-weight: 800;

  text-decoration: none;
}

.signup-area a:hover {
  text-decoration: underline;
}

/* 반응형 레이아웃: 화면 크기에 따라 표시 규칙을 조정한다. */
@media (max-width: 520px) {
  .login-page {
    align-items: flex-start;
    padding: 38px 16px;
  }

  .login-card {
    margin-top: 8vh;

    padding: 38px 24px 30px;

    border-radius: 18px;
  }

  .brand h1 {
    font-size: 25px;
  }
}


.passkey-button {
  height: 50px;
  margin-top: 10px;
  border: 1px solid #d9dde4;
  border-radius: 12px;
  background: #ffffff;
  color: #343d4b;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.passkey-button:hover {
  background: #f7f8fa;
}

.passkey-button:disabled {
  opacity: 0.6;
  cursor: default;
}

/* CARPAINT_MOBILE_LOGIN_HEIGHT_20260928 */
/* 변경 이유: 삼성 인터넷 웹앱에서 로그인 화면의 불필요한 세로 스크롤 감소 */
/* 역할: PC 화면을 유지하면서 모바일의 상하 여백과 요소 간격 조정 */
@media (max-width: 520px) {
  .login-page {
    min-height: 100dvh;
    padding: 12px 16px;
    align-items: center;
  }

  .login-card {
    margin-top: 0;
    padding: 24px 24px 20px;
  }

  .brand {
    margin-bottom: 20px;
  }

  .login-form {
    gap: 14px;
  }

  .signup-area {
    margin-top: 18px;
    padding-top: 16px;
  }
}