/* ───────────── find-password.css ───────────── */

.auth-container {
  margin: 60px auto 0;
  width: min(420px, calc(100% - 40px));   /* 예전 20% 는 태블릿에서 너무 좁았다 */
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

/* ─────────── 비밀번호 찾기 폼 ─────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auth-form input {
  padding: 12px 16px;
  font-size: 1rem;
  border: 1px solid #555;
  border-radius: 6px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-form input:focus {
  outline: none;
  border-color: #e71909;
}

/* 버튼 (제출) */
.auth-form button[type="submit"] {
  padding: 12px 0;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  background-color: #e71909;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.auth-form button[type="submit"]:hover {
  background-color: #c91608;
}

.auth-form button[type="submit"]:active {
  transform: translateY(1px);
}

/* 인증요청/인증확인 버튼 */
.btn-secondary {
  background-color: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 0.9rem;
  padding: 0 12px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-secondary:hover {
  background-color: #333;
}

.btn-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 메시지 */
.msg {
  font-size: 0.85rem;
  min-height: 1.2em;
  color: #666;
}
.msg.error {
  color: #e71909;
}
.msg.success {
  color: #2e7d32;
}

.timer {
  font-size: 0.8rem;
  color: #888;
  margin-top: -6px;
}

/* ─────────── 가로 배치 (휴대폰 + 버튼, 인증번호 + 버튼) ─────────── */
.row-inline {
  display: flex;
  gap: 8px;
  width: 100%;
}
/* 다른 공통 CSS(mypage.css)가 input 을 width:100% 로 잡아 두면 flex 안에서 버튼을
   화면 밖으로 밀어낸다 — 여기서는 남는 폭만 쓰게 하고 줄어들 수 있게 한다 */
.row-inline input {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
}
.row-inline .btn-secondary {
  flex: 0 0 auto;
  white-space: nowrap;
  padding: 0 14px;
}
.auth-form input,
.auth-form button {
  box-sizing: border-box;
  max-width: 100%;
}

/* ─────────── 모바일 반응형 ─────────── */
@media (max-width: 480px) {
  /* width:100% + 좌우 margin 20px 이면 폭이 화면보다 40px 넓어져 오른쪽 끝(인증요청
     버튼)이 화면 밖으로 나갔다 — 폭은 여백을 뺀 만큼만 */
  .auth-container {
    margin: 40px 20px;
    width: auto;
    max-width: none;
  }
  .auth-form {
    gap: 10px;
  }

  .auth-form input,
  .auth-form button[type="submit"],
  .btn-secondary {
    font-size: 0.9rem;
    padding: 10px 14px;
  }

  .btn-secondary {
    font-size: 0.8rem;
    padding: 8px;
  }
}
