/* =========================================================
   비밀번호 찾기 / 재설정
   file: /assets/forgot-password.css
========================================================= */

.forgot-page,
.forgot-page * {
  box-sizing: border-box;
}

.forgot-page {
  margin-top: 42px !important;
  margin-bottom: 76px !important;
  color: #172033;
}

.forgot-shell {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(400px, 1.05fr);
  gap: 26px;
  max-width: 1020px;
  margin: 0 auto;
  align-items: stretch;
}

.forgot-intro {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 46px 42px;
  border: 1px solid #dfe5f3;
  border-radius: 24px;
  background:
    radial-gradient(circle at 85% 18%, rgba(65, 84, 210, .16), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f6f8ff 58%, #edf1ff 100%);
  box-shadow: 0 18px 42px rgba(30, 41, 90, .08);
}

.forgot-intro::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(52, 72, 204, .055);
}

.forgot-intro > * {
  position: relative;
  z-index: 1;
}

.forgot-kicker {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: #eef1ff;
  color: #364bc2;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

.forgot-intro h1 {
  margin: 18px 0 14px;
  color: #111827;
  font-size: clamp(30px, 3.8vw, 40px);
  line-height: 1.17;
  font-weight: 900;
  letter-spacing: -.045em;
}

.forgot-brand {
  color: #3348cc;
}

.forgot-intro > p {
  max-width: 500px;
  margin: 0;
  color: #657186;
  font-size: 15px;
  line-height: 1.8;
  word-break: keep-all;
}

.forgot-intro > p strong {
  color: #3348cc;
}

.forgot-steps {
  display: grid;
  gap: 10px;
  margin-top: 36px;
}

.forgot-steps > div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 15px;
  border: 1px solid #e3e8f2;
  border-radius: 13px;
  background: rgba(255,255,255,.8);
}

.forgot-steps strong {
  color: #3348cc;
  font-size: 11px;
  font-weight: 900;
}

.forgot-steps span {
  color: #465266;
  font-size: 13px;
  font-weight: 800;
}

/* Card */
.forgot-card {
  padding: 38px;
  border: 1px solid #e3e8f0;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(30, 41, 59, .065);
}

.forgot-card-head {
  margin-bottom: 24px;
}

.forgot-card-head h2 {
  margin: 12px 0 7px;
  color: #111827;
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.035em;
}

.forgot-card-head p {
  margin: 0;
  color: #8791a2;
  font-size: 12px;
  line-height: 1.6;
}

/* form */
.forgot-form {
  display: grid;
  gap: 16px;
}

.forgot-field label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 12px;
  font-weight: 850;
}

.forgot-field input {
  width: 100%;
  height: 49px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #d4dbe6;
  border-radius: 10px;
  background: #fff;
  color: #172033;
  font-size: 13px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.forgot-field input::placeholder {
  color: #a4adbb;
}

.forgot-field input:focus {
  border-color: #6678e8;
  box-shadow: 0 0 0 3px rgba(68, 84, 210, .09);
}

.forgot-field input.is-valid {
  border-color: #4ba97a;
  box-shadow: 0 0 0 3px rgba(75, 169, 122, .07);
}

.forgot-field input.is-invalid {
  border-color: #d95c63;
  box-shadow: 0 0 0 3px rgba(217, 92, 99, .08);
}

.forgot-field small {
  display: block;
  margin-top: 6px;
  color: #9aa4b3;
  font-size: 10px;
}

.forgot-submit-btn,
.forgot-login-btn {
  width: 100%;
  min-height: 49px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 4px;
  border: 0;
  border-radius: 10px;
  background: #3348cc;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 7px 17px rgba(51, 72, 204, .18);
}

.forgot-submit-btn:hover,
.forgot-login-btn:hover {
  background: #2638ad;
  text-decoration: none;
}

/* Message */
.forgot-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 13px 14px;
  border-radius: 11px;
}

.forgot-message span {
  flex: 0 0 auto;
  display: inline-flex;
  width: 25px;
  height: 25px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
}

.forgot-message p {
  margin: 0;
  font-size: 11px;
  font-weight: 750;
}

.forgot-message.error {
  background: #fff1f2;
  color: #aa3c44;
}

.forgot-message.error span {
  background: #fbdadd;
}

.forgot-message.success {
  background: #edf9f2;
  color: #176e48;
}

.forgot-message.success span {
  background: #d8f2e4;
}

.forgot-verified {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 12px 13px;
  border-radius: 10px;
  background: #edf9f2;
  color: #176e48;
}

.forgot-verified span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #d8f2e4;
  font-size: 11px;
  font-weight: 900;
}

.forgot-verified p {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
}

.forgot-password-guide {
  min-height: 18px;
  margin-top: 6px;
  font-size: 10px;
  font-weight: 750;
}

.forgot-password-guide.success {
  color: #176e48;
}

.forgot-password-guide.error {
  color: #aa3c44;
}

.forgot-card-foot {
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid #edf0f4;
  text-align: center;
}

.forgot-card-foot a {
  color: #657186;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.forgot-card-foot a:hover {
  color: #3348cc;
}

/* responsive */
@media (max-width: 900px) {
  .forgot-shell {
    grid-template-columns: 1fr;
    max-width: 650px;
  }

  .forgot-intro {
    min-height: 0;
    padding: 34px 30px;
  }

  .forgot-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .forgot-steps > div {
    min-height: 78px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
  }
}

@media (max-width: 600px) {
  .forgot-page {
    margin-top: 20px !important;
    margin-bottom: 50px !important;
  }

  .forgot-shell {
    gap: 14px;
  }

  .forgot-intro,
  .forgot-card {
    border-radius: 18px;
  }

  .forgot-intro {
    padding: 27px 22px;
  }

  .forgot-intro h1 {
    font-size: 29px;
  }

  .forgot-intro > p {
    font-size: 14px;
  }

  .forgot-steps {
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 25px;
  }

  .forgot-steps > div {
    min-height: 48px;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .forgot-card {
    padding: 28px 22px;
  }
}
