/* AROMALL — 로그인 / 회원가입 (고풍스러운 슬라이드쇼 배경) */

.auth-page {
  min-height: 100vh;
  position: relative;
  display: grid; place-items: center;
  padding: 32px 16px;
  font-size: 17px;
  overflow-x: hidden;
}

/* ── 풀스크린 슬라이드쇼 ────────────────────────────────── */
.auth-bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; background: #1a1410; }
.auth-bg .slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0;
  animation: authSlide 30s infinite;
  transform: scale(1.05);
  filter: blur(6px) brightness(0.85);
}
.auth-bg .slide:nth-child(1) { animation-delay:  0s; }
.auth-bg .slide:nth-child(2) { animation-delay:  6s; }
.auth-bg .slide:nth-child(3) { animation-delay: 12s; }
.auth-bg .slide:nth-child(4) { animation-delay: 18s; }
.auth-bg .slide:nth-child(5) { animation-delay: 24s; }

@keyframes authSlide {
  0%   { opacity: 0; transform: scale(1.05); }
  6%   { opacity: 1; }
  20%  { opacity: 1; transform: scale(1.12); }
  26%  { opacity: 0; transform: scale(1.12); }
  100% { opacity: 0; }
}

/* 따뜻한 톤 오버레이 (밝게) */
.auth-bg::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at center, rgba(255,250,240,0.05) 0%, rgba(255,245,230,0.18) 100%),
    linear-gradient(135deg, rgba(255,250,240,0.12) 0%, rgba(245,230,210,0.18) 100%);
  z-index: 1;
}

/* ── 카드 ───────────────────────────────────────────────── */
.auth-card {
  position: relative;
  width: 100%; max-width: 460px;
  min-width: 0;
  background: rgba(255, 252, 247, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(180, 145, 90, 0.35);
  border-radius: 4px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.5) inset;
  padding: 56px 48px 40px;
}

/* 골드 더블 프레임 */
.auth-card::before {
  content: ''; position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border: 1px solid rgba(180, 145, 90, 0.5);
  pointer-events: none;
  border-radius: 2px;
}

.auth-brand {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  margin: 0 auto 28px;
  text-align: center;
  width: 100%;
}
.auth-brand img {
  height: 64px;
  width: auto;
  display: block;
  margin: 0 auto;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}
.auth-brand p {
  color: #8a6d3a;
  font-size: 15px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin: 0 auto;
  font-weight: 500;
  text-align: center;
}

/* 골드 세퍼레이터 */
.auth-brand::after {
  content: '';
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, #b4915a, transparent);
  margin-top: 4px;
}

.auth-card h1 {
  font-family: 'Noto Serif KR', 'Nanum Myeongjo', serif;
  font-size: 34px;
  font-weight: 500;
  text-align: center;
  margin-bottom: 26px;
  color: #2d2418;
  letter-spacing: 0.08em;
}

.auth-card form { min-width: 0; }
.auth-card .form-row { margin-bottom: 20px; min-width: 0; }
.auth-card .form-row label {
  font-size: 14px;
  font-weight: 600;
  color: #8a6d3a;
  letter-spacing: 0.12em;
}
.auth-card input {
  width: 100%;
  font-size: 17px;
  height: 54px;
  padding: 0 18px;
  border: 1px solid #d9c9a8;
  background: #fffdf8;
  border-radius: 2px;
  color: #2d2418;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.auth-card input:focus {
  border-color: #b4915a;
  box-shadow: 0 0 0 3px rgba(180, 145, 90, 0.15);
  outline: none;
}

.auth-card .btn {
  margin-top: 14px;
  height: 56px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.1em;
  background: linear-gradient(180deg, #2d2418 0%, #1a1410 100%);
  border: 1px solid #b4915a;
  color: #f5e9d3;
  border-radius: 2px;
  transition: all 0.25s;
}
.auth-card .btn:hover {
  background: linear-gradient(180deg, #3d3220 0%, #2a2014 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(180, 145, 90, 0.4);
}

.auth-foot {
  text-align: center;
  margin-top: 26px;
  font-size: 14px;
  color: #6b5840;
  letter-spacing: 0.04em;
}
.auth-foot a {
  color: #8a6d3a;
  font-weight: 700;
  border-bottom: 1px solid rgba(138, 109, 58, 0.4);
  padding-bottom: 1px;
}
.auth-foot a:hover { color: #2d2418; border-bottom-color: #2d2418; }

.auth-msg {
  background: #fdecea; color: #b13c2c;
  padding: 12px 16px; border-radius: 2px;
  border-left: 3px solid #b13c2c;
  font-size: 14px; margin-bottom: 18px; display: none;
}
.auth-msg.is-show { display: block; }

/* form-grid-2 — 회원가입 페이지 폰트도 키움 */
.auth-card .form-grid-2 { gap: 16px; }

@media (max-width: 540px) {
  .auth-card { padding: 40px 28px 32px; }
  .auth-card h1 { font-size: 26px; }
  .auth-page { font-size: 16px; }
}

@media (max-width: 380px) {
  .auth-page { padding: 16px 10px; font-size: 14px; }
  .auth-card { padding: 28px 18px 22px; border-radius: 3px; }
  .auth-card::before { top: 6px; left: 6px; right: 6px; bottom: 6px; }
  .auth-brand { gap: 8px; margin-bottom: 18px; }
  .auth-brand img { height: 48px; }
  .auth-brand p { font-size: 12px; letter-spacing: 0.14em; }
  .auth-card h1 { font-size: 22px; margin-bottom: 18px; letter-spacing: 0.05em; }
  .auth-card .form-row { margin-bottom: 14px; }
  .auth-card .form-row label { font-size: 12px; letter-spacing: 0.08em; }
  .auth-card input { font-size: 16px; height: 44px; padding: 0 12px; }
  .auth-card .btn { margin-top: 10px; height: 46px; font-size: 15px; letter-spacing: 0.06em; }
  .auth-foot { margin-top: 18px; font-size: 13px; }
  .auth-msg { font-size: 13px; padding: 10px 12px; margin-bottom: 14px; }
}
