/* =============================================================
   auth.css — 인증 화면 공통 스타일
   대상: login.html / register.html
   ============================================================= */


/* -------------------------------------------------------------
   1. 전체 배경 / 중앙 정렬
   ------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f0f4f8 0%, #dce8f0 100%);
  padding: 24px 16px;
  box-sizing: border-box;
}


/* -------------------------------------------------------------
   2. 카드 박스
   ------------------------------------------------------------- */
.auth-card {
  width: min(440px, 100%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow:
    0 4px 6px rgba(0, 0, 0, 0.05),
    0 12px 32px rgba(0, 0, 0, 0.10);
  padding: 40px 36px 32px;
  box-sizing: border-box;
}


/* -------------------------------------------------------------
   3. 헤더 (제목 / 보조 설명)
   ------------------------------------------------------------- */
.auth-header {
  margin-bottom: 28px;
  text-align: center;
}

.auth-header h1 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.auth-header p {
  margin: 0;
  font-size: 13px;
  color: #64748b;
  line-height: 1.6;
}


/* -------------------------------------------------------------
   4. 폼 공통 레이아웃
   ------------------------------------------------------------- */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}


/* -------------------------------------------------------------
   5. 라벨
   ------------------------------------------------------------- */
.auth-form label {
  margin-top: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

.auth-form label:first-child {
  margin-top: 0;
}


/* -------------------------------------------------------------
   6. 입력 필드 (text / tel / password 공통)
   ------------------------------------------------------------- */
.auth-form input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  font-size: 14px;
  color: #1e293b;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.auth-form input::placeholder {
  color: #94a3b8;
  font-size: 13px;
}

.auth-form input:focus {
  background: #ffffff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}


/* -------------------------------------------------------------
   7. 오류 메시지
   ------------------------------------------------------------- */
.error-msg {
  display: none; /* JS에서 style.display = 'block' 으로 노출 */
  margin: 6px 0 2px;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  line-height: 1.5;
}


/* -------------------------------------------------------------
   8. 버튼 (로그인 / 회원가입 공통)
   ------------------------------------------------------------- */
.auth-form button {
  margin-top: 14px;
  width: 100%;
  height: 48px;
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  background: #2563eb;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}

.auth-form button:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.30);
}

.auth-form button:active {
  background: #1e40af;
  transform: translateY(1px);
  box-shadow: none;
}


/* -------------------------------------------------------------
   9. 보조 링크 영역 (.auth-links)
   ------------------------------------------------------------- */
.auth-links {
  margin-top: 14px;
  text-align: center;
}

.auth-links a {
  font-size: 13px;
  color: #3b82f6;
  text-decoration: none;
  font-weight: 600;
}

.auth-links a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}


/* -------------------------------------------------------------
   10. 안내 문구 (.hint)
   ------------------------------------------------------------- */
.hint {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 12px;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  line-height: 1.7;
  word-break: keep-all;
}


/* -------------------------------------------------------------
   11. 반응형 — 모바일 (480px 이하)
   ------------------------------------------------------------- */
@media (max-width: 480px) {
  .auth-card {
    padding: 28px 20px 24px;
  }

  .auth-header h1 {
    font-size: 19px;
  }

  .auth-header p {
    font-size: 12px;
  }

  .auth-form input {
    height: 44px;
    font-size: 14px;
  }

  .auth-form button {
    height: 46px;
    font-size: 14px;
  }
}
