/* =========================
   SIGNUP
========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;

  background-color: #f5f5f5;

  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  overflow-y: auto;
}

.signup-screen {
  min-height: 100vh;

  display: flex;
  justify-content: center;

  background-color: #ffffff;

  overflow-y: auto;
}

.signup-box {
  width: 100%;

  padding: 28px 22px 70px;
}

.signup-box h1 {
  margin: 0 0 20px;

  color: #111111;

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

/* =========================
   form
========================= */

#signupForm {
  display: flex;

  flex-direction: column;

  gap: 12px;
}

/* =========================
   field
========================= */

.signup-field {
  display: flex;

  flex-direction: column;

  gap: 6px;
}

.signup-field label {
  color: #222222;

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

/* =========================
   기본 input / select
========================= */

.signup-field input,
.signup-field select {
  width: 100%;

  height: 54px;

  padding: 0 12px;

  border: 1px solid #c8ced4;

  border-radius: 0;

  outline: none;

  background-color: #ffffff;

  color: #222222;

  font-size: 13px;
}

.signup-field input::placeholder {
  color: #aaaaaa;
}

.signup-field input:focus,
.signup-field select:focus {
  border-color: #52aead;
}

/* =========================
   select
========================= */

.signup-field select {
  appearance: none;

  -webkit-appearance: none;

  padding-right: 40px;

  background-image:
    linear-gradient(45deg, transparent 50%, #777777 50%),
    linear-gradient(135deg, #777777 50%, transparent 50%);

  background-position:
    calc(100% - 18px) 23px,
    calc(100% - 13px) 23px;

  background-size:
    5px 5px,
    5px 5px;

  background-repeat: no-repeat;
}

/* =========================
   버튼 포함 input
========================= */

.input-with-button {
  position: relative;

  width: 100%;
}

.input-with-button input {
  padding-right: 92px;
}

.inside-button {
  position: absolute;

  top: 50%;
  right: 10px;

  transform: translateY(-50%);

  height: 32px;

  padding: 0 12px;

  border: none;

  border-radius: 5px;

  background-color: #eeeeee;

  color: #555555;

  font-size: 11px;

  cursor: pointer;
}

.inside-button.active {
  background-color: #52aead;

  color: #ffffff;
}

.inside-button:disabled {
  cursor: default;

  background-color: #eeeeee;

  color: #aaaaaa;
}

/* =========================
   이메일 인증 안내
========================= */

.verification-message {
  min-height: 14px;

  margin: 0;

  color: #888888;

  font-size: 10px;
}

.verification-message.success {
  color: #52aead;
}

.verification-message.error {
  color: #e15c5c;
}

/* =========================
   disabled
========================= */

.signup-field input:disabled {
  background-color: #fafafa;

  color: #aaaaaa;
}

/* =========================
   회원가입 버튼
========================= */

.signup-button {
  width: 100%;

  height: 48px;

  margin-top: 22px;

  border: none;

  background-color: #52aead;

  color: #ffffff;

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

  cursor: pointer;
}

.signup-button:active {
  background-color: #469b9a;
}

/* =========================
   모바일
========================= */

@media (max-width: 390px) {
  .signup-box {
    padding-left: 18px;

    padding-right: 18px;
  }
}

#signupForm {
  padding-bottom: 30px;
}

/* =========================
   이메일 자동완성 드롭다운
========================= */

.email-suggest-list {
  display: none; /* 평소에는 아예 화면에서 숨겨 테두리 잔상이 남지 않음 */
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  margin: 2px 0 0 0;
  padding: 0;
  list-style: none;
  background-color: #ffffff;
  border: 1px solid #cfd6dc;
  border-radius: 0;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  max-height: 180px;
  overflow-y: auto;
  z-index: 999;
}

/* JS에서 .show 클래스를 추가했을 때만 노출 */
.email-suggest-list.show {
  display: block;
}

.email-suggest-list li {
  padding: 12px 14px;
  font-size: 13px;
  color: #333333;
  cursor: pointer;
  border-bottom: 1px solid #f5f5f5;
}

.email-suggest-list li:last-child {
  border-bottom: none;
}

.email-suggest-list li:active,
.email-suggest-list li:hover {
  background-color: #f0f7f7;
  color: #52aead;
}
