:root {
  --gymfit-green: #A8FF35;

  --black: #000000;
  --white: #ffffff;

  --field-bg: #292929;
  --field-border: rgba(255, 255, 255, 0.11);

  --card-bg: rgba(255, 255, 255, 0.045);
  --card-border: rgba(255, 255, 255, 0.1);

  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.82);
  --text-muted: rgba(255, 255, 255, 0.42);

  --danger: #ff7070;
  --success: #A8FF35;
}

body {
  overflow-y: auto;
  background: var(--black);
}

.find-password-page {
  width: 100%;
  min-height: 100dvh;

  display: flex;
  justify-content: center;

  background:
    radial-gradient(
      circle at 50% 12%,
      rgba(168, 255, 53, 0.09),
      transparent 29%
    ),
    var(--black);
}

.find-password-container {
  width: 100%;
  max-width: 430px;
  min-height: 100dvh;

  padding:
    max(28px, env(safe-area-inset-top))
    28px
    max(38px, env(safe-area-inset-bottom));
}

/* =========================
   상단
========================= */

.page-header {
  width: 100%;
  height: 50px;

  display: flex;
  align-items: center;
}

.back-button {
  width: 40px;
  height: 40px;

  padding: 0;

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

  color: var(--white);
  background: transparent;

  border: none;
  outline: none;

  cursor: pointer;
}

.back-button svg {
  width: 28px;
  height: 28px;
}

/* =========================
   공통 화면
========================= */

.password-view {
  width: 100%;
}

.password-view[hidden] {
  display: none;
}

/* =========================
   메인 비주얼
========================= */

.visual-area {
  margin-top: 46px;

  display: flex;
  justify-content: center;
}

.visual-ring {
  position: relative;

  width: 118px;
  height: 118px;

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

  background:
    linear-gradient(
      145deg,
      rgba(168, 255, 53, 0.15),
      rgba(168, 255, 53, 0.03)
    );

  border: 1px solid rgba(168, 255, 53, 0.35);
  border-radius: 50%;

  box-shadow:
    0 0 40px rgba(168, 255, 53, 0.09),
    inset 0 0 28px rgba(168, 255, 53, 0.05);
}

.visual-icon {
  width: 76px;
  height: 76px;

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

  color: var(--gymfit-green);
  background: #171b12;

  border: 1px solid rgba(168, 255, 53, 0.32);
  border-radius: 50%;
}

.visual-icon svg {
  width: 47px;
  height: 47px;
}

.mail-badge {
  position: absolute;
  right: -3px;
  bottom: 5px;

  width: 38px;
  height: 38px;

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

  color: #050505;
  background: var(--gymfit-green);

  border: 4px solid #000000;
  border-radius: 50%;
}

.mail-badge svg {
  width: 19px;
  height: 19px;
}

/* =========================
   제목
========================= */

.title-area,
.success-title-area {
  margin-top: 38px;

  text-align: center;
}

.eyebrow {
  margin: 0 0 11px;

  color: var(--gymfit-green);

  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
}

.title-area h1,
.success-title-area h1 {
  margin: 0;

  color: var(--text-primary);

  font-size: 34px;
  font-weight: 850;
  line-height: 1.18;
  letter-spacing: -1.2px;
}

.description {
  margin: 15px 0 0;

  color: var(--text-secondary);

  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  letter-spacing: -0.3px;
}

/* =========================
   이메일 폼
========================= */

.find-password-form {
  width: 100%;

  margin-top: 45px;
}

.input-label {
  display: block;

  margin: 0 0 11px 4px;

  color: rgba(255, 255, 255, 0.9);

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

.input-group {
  position: relative;

  width: 100%;
  height: 62px;
}

.input-group input {
  width: 100%;
  height: 100%;

  padding: 0 24px 0 64px;

  color: var(--white);
  background: var(--field-bg);

  border: 1px solid var(--field-border);
  border-radius: 18px;
  outline: none;

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

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

.input-group input::placeholder {
  color: rgba(255, 255, 255, 0.38);
}

.input-group input:focus {
  border-color: rgba(168, 255, 53, 0.72);

  box-shadow:
    0 0 0 3px rgba(168, 255, 53, 0.08);
}

.input-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  z-index: 2;

  width: 25px;
  height: 25px;

  color: rgba(255, 255, 255, 0.54);

  transform: translateY(-50%);
  pointer-events: none;
}

.input-icon svg {
  width: 100%;
  height: 100%;
}

.form-message {
  margin: 10px 5px 0;

  color: var(--danger);

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

.form-message:empty {
  display: none;
}

.form-message.success {
  color: var(--success);
}

/* =========================
   발급 버튼
========================= */

.send-button,
.login-move-button {
  width: 100%;
  height: 62px;

  color: #050505;
  background: var(--gymfit-green);

  border: none;
  outline: none;
  border-radius: 18px;

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

  cursor: pointer;

  box-shadow:
    0 10px 24px rgba(168, 255, 53, 0.17);

  transition:
    transform 0.12s ease,
    filter 0.15s ease;
}

.send-button {
  margin-top: 24px;
}

.send-button:hover,
.login-move-button:hover {
  filter: brightness(1.02);
}

.send-button:active,
.login-move-button:active {
  transform: scale(0.985);
}

.send-button:disabled {
  opacity: 0.58;
  cursor: not-allowed;
}

/* =========================
   안내 카드
========================= */

.notice-card {
  width: 100%;

  margin-top: 24px;
  padding: 18px;

  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 13px;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 17px;
}

.notice-icon {
  width: 36px;
  height: 36px;

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

  color: var(--gymfit-green);
  background: rgba(168, 255, 53, 0.08);

  border-radius: 12px;
}

.notice-icon svg {
  width: 21px;
  height: 21px;
}

.notice-card strong {
  display: block;

  color: rgba(255, 255, 255, 0.9);

  font-size: 14px;
  font-weight: 750;
}

.notice-card p {
  margin: 5px 0 0;

  color: var(--text-muted);

  font-size: 12px;
  line-height: 1.55;
}

/* =========================
   성공 화면
========================= */

.success-view {
  padding-top: 48px;
}

.success-visual {
  position: relative;

  width: 124px;
  height: 124px;

  margin: 0 auto;

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

.success-ring {
  position: relative;
  z-index: 2;

  width: 92px;
  height: 92px;

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

  color: #050505;
  background: var(--gymfit-green);

  border-radius: 50%;

  box-shadow:
    0 0 42px rgba(168, 255, 53, 0.22);
}

.success-ring svg {
  width: 49px;
  height: 49px;
}

.success-glow {
  position: absolute;
  inset: 0;

  border: 1px solid rgba(168, 255, 53, 0.2);
  border-radius: 50%;

  animation: successPulse 2.2s ease-in-out infinite;
}

@keyframes successPulse {
  0% {
    opacity: 0.2;
    transform: scale(0.78);
  }

  50% {
    opacity: 0.65;
  }

  100% {
    opacity: 0;
    transform: scale(1.08);
  }
}

.email-result-card {
  width: 100%;

  margin-top: 38px;
  padding: 18px 20px;

  display: flex;
  align-items: center;
  gap: 14px;

  background: var(--field-bg);

  border: 1px solid rgba(168, 255, 53, 0.25);
  border-radius: 18px;
}

.email-result-icon {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

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

  color: var(--gymfit-green);
  background: rgba(168, 255, 53, 0.08);

  border-radius: 13px;
}

.email-result-icon svg {
  width: 22px;
  height: 22px;
}

.email-result-text {
  min-width: 0;

  color: rgba(255, 255, 255, 0.94);

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

  overflow-wrap: anywhere;
}

/* =========================
   성공 안내 단계
========================= */

.success-guide {
  width: 100%;

  margin-top: 26px;
  padding: 22px 20px;

  background: var(--card-bg);

  border: 1px solid var(--card-border);
  border-radius: 18px;
}

.guide-item {
  display: grid;
  grid-template-columns: 32px 1fr;
  align-items: center;
  gap: 13px;
}

.guide-number {
  width: 32px;
  height: 32px;

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

  color: #050505;
  background: var(--gymfit-green);

  border-radius: 50%;

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

.guide-item p {
  margin: 0;

  color: rgba(255, 255, 255, 0.75);

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

.guide-line {
  width: 1px;
  height: 18px;

  margin: 5px 0 5px 15px;

  background: rgba(168, 255, 53, 0.25);
}

.login-move-button {
  margin-top: 28px;
}

.resend-button {
  display: block;

  margin: 19px auto 0;
  padding: 6px 10px;

  color: rgba(255, 255, 255, 0.46);
  background: transparent;

  border: none;
  outline: none;

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

  cursor: pointer;
}

.resend-button:hover {
  color: var(--gymfit-green);
}

/* =========================
   작은 화면
========================= */

@media (max-width: 370px) {
  .find-password-container {
    padding-left: 20px;
    padding-right: 20px;
  }

  .visual-area {
    margin-top: 34px;
  }

  .visual-ring {
    width: 108px;
    height: 108px;
  }

  .visual-icon {
    width: 70px;
    height: 70px;
  }

  .title-area h1,
  .success-title-area h1 {
    font-size: 31px;
  }

  .description {
    font-size: 15px;
  }

  .find-password-form {
    margin-top: 38px;
  }

  .success-view {
    padding-top: 36px;
  }
}