.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #f8f7fc;
  padding: 2rem;
}

.login-container {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* 로고 */
.login-logo {
  display: flex;
  align-items: center;
  margin-bottom: 2.5em;
  width: 56%;
}

.login-logo-wrap {
  width: 100%;
}

.login-logo-wrap img {
  width: 100%;
}

.login-logo-icon {
  width: 48px;
  height: 48px;
  background-color: black;
  border-radius: 8px;
}

.login-logo-text {
  font-size: 32px;
  font-weight: 600;
  color: #292c33;
}

/* 로그인 폼 */
.login-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.login-form-group {
  width: 100%;
}

.login-form-group:focus-visible {
  outline: none;
}

/* 입력 필드 */
.login-input {
  width: 100%;
  padding: 1rem;
  font-size: 14px;
  color: #595959;
  border: none;
  border-radius: 10px;
  background-color: white;
  outline: none;
  transition: border-color 0.2s;
  height: 52px;
  box-shadow: 0 0 10px 0 #292C3305;
}

.login-input::placeholder {
  color: #bebebe;
}

.login-input:focus {
  border: 1px solid #d9d9d9;
  background: #fff;

}

.login-input:-webkit-autofill {
  background-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
}

/* 체크박스 그룹 */
.login-checkbox-group {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.login-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

.login-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.login-checkbox-icon {
  width: 18px;
  height: 18px;
  background: url("../images/checkbox_off.svg") no-repeat center center / contain;
  transition: all 0.2s ease;
  vertical-align: middle;
}

.login-checkbox:checked + .login-checkbox-icon {
  background: url("../images/checkbox_on.svg") no-repeat center center / contain;
}

.login-checkbox-text {
  font-size: 15px;
  color: #595959;
  user-select: none;
}

/* 로그인 버튼 */
.login-button {
  width: 100%;
  padding: 1rem;
  font-size: 16px;
  font-weight: 500;
  color: white;
  background-color: #595959;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 0.5rem;
  font-family: 'Pretendard',sans-serif;
  height: 54px;
}

.login-button:hover {
  background-color: #292C33;
}

/* 에러 메시지 */
.login-error {
  color: #ff5d7d;
  font-size: 14px;
  margin-bottom: 1em;
  text-align: center;
}

.login-success {
  color: #22c55e;
  font-size: 14px;
  margin-bottom: 1em;
  text-align: center;
}



/* 에러 메시지 */
.signup-error {
  color: #8bd179;
  font-size: 12px;
  margin-top: 0.25rem;
}

/* 인증 메시지 공통 스타일 */
.signup-message {
  font-size: 12px;
  margin-top: 0.25rem;
}

/* 타이머 스타일 */
.signup-message.timer {
  color: #8bd179;
}

/* 성공 메시지 스타일 */
.signup-message.success-message {
  color: #8bd179;
}

/* 에러 메시지 스타일 */
.signup-message.error-message {
    color: #ff5d7d;
}

/* 만료 경고 스타일 (30초 이하) */
.signup-message.timer.warning {
    color: #fd7e14;
}


/* 하단 링크 */
.login-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5em;
  margin-top: 1em;
}

.login-link {
  font-size: 15px;
  color: #595959;
  text-decoration: none;
  background: none;
  border: none;
  padding: 3px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.login-link:hover {
  color: #292c33;
}

.login-link-divider {
  font-size: 14px;
  color: #595959;
}

/*아이디찾기, 비밀번호찾기*/
.find-container {
  max-width: 580px;
  background: #fff;
  justify-content: center;
  max-height: 85vh;
  padding: 3.5em 0;
  border-radius: 25px;
  box-shadow: 0 0 10px 0 #292C3305;
  box-sizing: border-box;
}

.form-title {
  margin-bottom: 2.5em;
}

.form-title_wrap {
  font-weight: 700;
  font-size: 28px;
}

.find-form {
  max-width: 360px;
}

.find-form .login-input {
  color: #292C33;
  border: 1px solid #d9d9d9;
  padding: 1rem 6rem 1rem 1rem;
}

.find-form .login-input:focus {
  border-color: #bebebe;
  box-shadow: 0 0 10px 0 #292C3305;
}

.signup-input-wrap {
  position: relative;
  width: 100%;
}

.input-inner-button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  line-height: 1;
  padding: 0.7em;
  font-size: 14px;
  border: 1px solid #757575;
  color: #757575;
  cursor: pointer;
  transition: background-color 0.2s ease;
  background: none;
  border-radius: 30px;
  width: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.input-inner-button:hover {
  background-color: #595959;
  color: #fff;
}

/* 반응형 */
@media (max-width: 640px) {
  .find-page {
    background: #fff;
  }

  .login-container {
    width: 90%;
  }

  .find-container {
    background: none;
  }

  .login-logo-icon {
    width: 40px;
    height: 40px;
  }

  .login-logo-text {
    font-size: 28px;
  }

  .login-page {
    padding: 1rem;
  }
}

@media (max-width: 380px) {
  .form-title_wrap {
    font-size: 26px;
  }

  .login-input {
    height: 50px;
  }

  .login-button {
    height: 50px;
    font-size: 15px;
  }

  .login-links {
    justify-content: space-between;
    gap: 0.5em;
    font-size: 14px;
  }

  .login-link {
    font-size: 14px;
  }

  .input-inner-button {
    padding: 0.6em;
    width: 75px;
  }
}
