/* assets/css/auth.css — Auth pages — Nhien Head Spa style
   Thay thế auth.css cũ
*/
@import url('/assets/css/font-mango-dream.css?v=1');
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;1,300;1,400&display=swap');

:root {
  --auth-warm-dk: #3d2a22;
  --auth-warm-md: #5c3d30;
  --auth-warm-lt: #7a5f54;
  --auth-cream:   #faf6f2;
  --auth-border:  rgba(155,122,109,.22);
  --auth-primary: #9b7a6d;
  --auth-primary-d: #7a5f54;
  --font: 'Mango Dream', 'Montserrat', -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Cormorant Garamond', Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }

body.auth-body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(160deg, #3d2a22 0%, #5c3d30 50%, #7a5f54 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  font-family: var(--font);
  font-weight: 300;
  -webkit-font-smoothing: antialiased;
}

/* ── Card shell ── */
.auth-card {
  background: var(--auth-cream);
  border-radius: 22px;
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(30,15,10,.38);
}

/* ── Top header ── */
.auth-top {
  padding: 34px 28px 26px;
  text-align: center;
  background: linear-gradient(160deg, #3d2a22 0%, #5c3d30 100%);
  position: relative;
  overflow: hidden;
}
.auth-top::before {
  content: '';
  position: absolute; top: -60px; right: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(196,168,152,.2) 0%, transparent 65%);
  pointer-events: none;
}
.auth-logo {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: rgba(245,240,235,.12);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 14px;
  overflow: hidden;
}
.auth-logo img {
  width: 48px; height: 48px;
  object-fit: contain;
  border-radius: 12px;
}
.auth-top h1 {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.55rem;
  font-weight: 300;
  color: #faf6f2;
  margin: 0 0 5px;
  letter-spacing: .02em;
}
.auth-top p {
  color: rgba(245,240,235,.6);
  font-size: .8rem;
  margin: 0;
  font-weight: 300;
  letter-spacing: .04em;
}

/* ── Body ── */
.auth-body-wrap {
  padding: 24px 24px 28px;
  background: #faf6f2;
}

/* ── Field ── */
.auth-field { margin-bottom: 14px; }
.auth-field label {
  display: block;
  font-size: .66rem;
  font-weight: 600;
  color: var(--auth-warm-lt);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
.auth-field input,
.auth-field select {
  width: 100%;
  padding: 12px 14px;
  background: #f0e8e1;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  font-size: .92rem;
  font-family: var(--font);
  font-weight: 300;
  color: #2d1f18;
  transition: border-color .18s, box-shadow .18s, background .18s;
  -webkit-appearance: none;
}
.auth-field input:focus,
.auth-field select:focus {
  outline: none;
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px rgba(155,122,109,.15);
  background: #fff;
}
.auth-field input::placeholder { color: rgba(122,95,84,.45); }

/* ── Password toggle ── */
.auth-pw { position: relative; }
.auth-pw input { padding-right: 44px; }
.auth-eye {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  cursor: pointer;
  color: var(--auth-warm-lt);
  display: flex; align-items: center;
  padding: 4px;
  opacity: .6;
}
.auth-eye:hover { opacity: 1; color: var(--auth-primary); }

/* ── Submit button ── */
.auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #5c3d30 0%, #9b7a6d 100%);
  color: #faf6f2;
  border: none;
  border-radius: 10px;
  font-size: .88rem;
  font-weight: 500;
  font-family: var(--font);
  letter-spacing: .1em;
  text-transform: uppercase;
  cursor: pointer;
  margin-top: 6px;
  box-shadow: 0 5px 18px rgba(92,61,48,.28);
  transition: opacity .18s, transform .12s;
}
.auth-btn:hover  { opacity: .9; }
.auth-btn:active { transform: scale(.98); }
.auth-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ── Error / success ── */
.auth-err {
  background: #fbecea;
  border: 1px solid rgba(180,70,60,.2);
  color: #8a2c1c;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: .8rem;
  margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}
.auth-ok {
  background: #e8f2ed;
  border: 1px solid rgba(14,116,58,.2);
  color: #1a5c37;
  border-radius: 10px;
  padding: 11px 13px;
  font-size: .8rem;
  margin-bottom: 14px;
  display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.4;
}

/* ── Divider ── */
.auth-divider {
  display: flex; align-items: center; gap: 10px;
  margin: 14px 0;
  color: var(--auth-warm-lt);
  font-size: .75rem;
  letter-spacing: .06em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1; height: 1px;
  background: var(--auth-border);
}

/* ── Links ── */
.auth-link {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--auth-border);
  margin-top: 14px;
  font-size: .8rem;
  color: #8a6f64;
}
.auth-link a {
  color: var(--auth-primary-d);
  font-weight: 600;
  text-decoration: none;
  font-size: .8rem;
}
.auth-link a:hover { text-decoration: underline; }

.auth-mini {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: #8a6f64;
  margin-top: 10px;
  text-decoration: none;
}
.auth-mini:hover { color: var(--auth-primary); }

/* ── Outline social button ── */
.auth-outline {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%;
  padding: 11px;
  border: 1.5px solid var(--auth-border);
  border-radius: 10px;
  font-size: .84rem; font-weight: 500; font-family: var(--font);
  color: #2d1f18; background: #fff; cursor: pointer;
  text-decoration: none;
  transition: all .18s;
}
.auth-outline:hover {
  border-color: var(--auth-primary);
  color: var(--auth-primary);
  background: rgba(155,122,109,.04);
}

/* ── Language switcher ── */
.auth-lang {
  position: fixed; bottom: 18px; right: 18px;
  display: flex; gap: 6px; z-index: 99;
}
.auth-lang button {
  padding: 5px 14px;
  border-radius: 20px;
  border: 1.5px solid rgba(245,240,235,.35);
  background: rgba(245,240,235,.14);
  color: #faf6f2;
  font-size: .72rem; font-weight: 500;
  font-family: var(--font);
  letter-spacing: .08em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: all .18s;
}
.auth-lang button.active,
.auth-lang button:hover {
  background: rgba(245,240,235,.28);
  border-color: rgba(245,240,235,.7);
}

/* ── Misc ── */
.small-muted { font-size: .77rem; color: #8a6f64; line-height: 1.5; }
.auth-links  { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }

@media (max-width: 420px) {
  .auth-card  { border-radius: 18px; }
  .auth-top   { padding: 28px 20px 22px; }
  .auth-body-wrap { padding: 20px 18px 24px; }
}
