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


/* -------------------------------------------------------------
   1. 전체 배경 / 중앙 정렬
   ------------------------------------------------------------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(160deg, #f0ebe0 0%, #e8dfd0 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(45, 90, 39, 0.07),
    0 12px 32px rgba(45, 90, 39, 0.13);
  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: #1a2e0a;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.auth-header p {
  margin: 0;
  font-size: 13px;
  color: #6b7c5a;
  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: #2d4a1e;
}

.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: #1a2e0a;
  background: #f7f2e8;
  border: 1.5px solid #c8bfa8;
  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: #a09070;
  font-size: 13px;
}

.auth-form input:focus {
  background: #ffffff;
  border-color: #4a7c3f;
  box-shadow: 0 0 0 3px rgba(74, 124, 63, 0.15);
}


/* -------------------------------------------------------------
   7. 오류 메시지
   ------------------------------------------------------------- */
.error-msg {
  display: none;
  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: linear-gradient(135deg, #2d5a27 0%, #4a7c3f 100%);
  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: linear-gradient(135deg, #4a7c3f 0%, #2d5a27 100%);
  box-shadow: 0 4px 12px rgba(45, 90, 39, 0.32);
}

.auth-form button:active {
  background: linear-gradient(135deg, #1e3f1a 0%, #162e12 100%);
  transform: translateY(1px);
  box-shadow: none;
}


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

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

.auth-links a:hover {
  color: #2d5a27;
  text-decoration: underline;
}


/* -------------------------------------------------------------
   10. 안내 문구 (.hint)
   ------------------------------------------------------------- */
.hint {
  margin-top: 16px;
  padding: 12px 14px;
  font-size: 12px;
  color: #6b7c5a;
  background: #f7f2e8;
  border: 1px solid #d8cdb8;
  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;
  }
}
