/* ============================================================
   GlamGoddess — Customer Auth (login + register) shared styles
============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --gold:  #C8860A;
  --gold2: #E8B84B;
  --ggr:   linear-gradient(145deg, #C8860A 0%, #E8B84B 50%, #C8860A 100%);
  --ink:   #0d0d0d;
  --muted: #6b5c3e;
}
html, body { height: 100%; }
body {
  font-family: 'Poppins', sans-serif;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fdfaf2 0%, #f9f2e3 45%, #f5ead4 100%);
  padding: 24px 16px;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 50% at 10% 10%, rgba(200,134,10,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(200,134,10,0.06) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--ggr);
  z-index: 10;
}

.spark {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  color: var(--gold2);
  animation: sparkPulse 3s ease-in-out infinite;
  font-size: 0.9rem;
  opacity: 0.4;
}
.sp1 { top: 12%; left: 8%; animation-delay: 0s; }
.sp2 { top: 20%; right: 9%; animation-delay: 1s; font-size: 0.6rem; }
.sp3 { bottom: 18%; left: 7%; animation-delay: 1.6s; font-size: 0.65rem; }
.sp4 { bottom: 14%; right: 8%; animation-delay: 0.5s; }
@keyframes sparkPulse {
  0%, 100% { opacity: 0.4; transform: scale(1); }
  50%      { opacity: 0.1; transform: scale(0.5); }
}

.lg-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  background: #fff;
  border-radius: 24px;
  border: 1px solid rgba(200,134,10,0.15);
  box-shadow: 0 8px 48px rgba(0,0,0,0.08), 0 0 0 1px rgba(200,134,10,0.06);
  padding: 44px 44px 36px;
  animation: cardIn .55s cubic-bezier(0.22,1,0.36,1) both;
}
.lg-card.lg-card-wide { max-width: 520px; padding: 40px 44px 32px; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.lg-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--ggr);
  border-radius: 24px 24px 0 0;
}

.lg-logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 28px; text-decoration: none; }
.lg-card-wide .lg-logo { gap: 8px; margin-bottom: 20px; }
.lg-logo-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fef9f0 0%, #faecd0 100%);
  border: 2px solid rgba(200,134,10,0.25);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  color: var(--gold2);
  box-shadow: 0 4px 20px rgba(200,134,10,0.2);
}
.lg-card-wide .lg-logo-icon { width: 56px; height: 56px; font-size: 1.4rem; }
.lg-logo-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.06em;
  background: var(--ggr);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}
.lg-logo-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-top: -4px;
}

.lg-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem; font-weight: 700;
  color: var(--ink);
  text-align: center;
  line-height: 1.15;
  margin-bottom: 4px;
}
.lg-card-wide .lg-form-title { font-size: 1.6rem; }
.lg-form-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 0.76rem; color: var(--ink);
  text-align: center;
  margin-bottom: 26px;
}
.lg-card-wide .lg-form-sub { margin-bottom: 20px; }

.lg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.lg-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.lg-card-wide .lg-field { gap: 6px; margin-bottom: 12px; }
.lg-label {
  font-family: 'Poppins', sans-serif;
  font-size: 0.6rem; font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink);
}
.lg-input-wrap { position: relative; }
.lg-input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--gold); font-size: 0.72rem; pointer-events: none;
}
.lg-input {
  width: 100%;
  background: #faf6ee;
  border: 1.5px solid rgba(200,134,10,0.2);
  border-radius: 10px;
  padding: 13px 14px 13px 42px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.85rem; font-weight: 500;
  color: var(--ink); outline: none;
  transition: border-color .25s, background .25s, box-shadow .25s;
}
.lg-input::placeholder { color: rgba(0,0,0,0.28); font-weight: 400; }
.lg-input:focus {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(200,134,10,0.1);
}
.lg-eye {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: rgba(0,0,0,0.3); font-size: 0.75rem;
  cursor: pointer; background: none; border: none; padding: 4px;
  transition: color .22s;
}
.lg-eye:hover { color: var(--gold); }

.lg-strength { display: flex; gap: 4px; margin-top: 6px; }
.lg-strength-bar {
  flex: 1; height: 3px;
  border-radius: 2px;
  background: rgba(200,134,10,0.15);
  transition: background .3s;
}
.lg-strength-bar.weak   { background: #ef4444; }
.lg-strength-bar.medium { background: #f59e0b; }
.lg-strength-bar.strong { background: #22c55e; }

.lg-forgot-row { display: flex; justify-content: flex-end; margin-top: -6px; margin-bottom: 22px; }
.lg-forgot {
  font-family: 'Poppins', sans-serif;
  font-size: 0.7rem; font-weight: 600;
  color: var(--gold); text-decoration: none; transition: color .22s;
}
.lg-forgot:hover { color: var(--ink); }

.lg-submit {
  width: 100%; padding: 14px 0;
  background: var(--ggr); color: #000;
  font-family: 'Poppins', sans-serif;
  font-size: 0.72rem; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
  border: none; border-radius: 10px;
  cursor: pointer; filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(200,134,10,0.4);
  transition: filter .25s, transform .22s;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  position: relative; overflow: hidden; margin-bottom: 20px;
}
.lg-submit::after {
  content: '';
  position: absolute; top: 0; left: -80%; width: 55%; height: 100%;
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.22), transparent);
  transform: skewX(-18deg); transition: left .55s ease;
}
.lg-submit:hover:not(:disabled) { filter: brightness(1.14); transform: translateY(-2px); }
.lg-submit:hover:not(:disabled)::after { left: 140%; }
.lg-submit:disabled { cursor: wait; opacity: .85; transform: none; }
.lg-submit i { font-size: 0.65rem; transition: transform .3s; }
.lg-submit:hover:not(:disabled) i { transform: translateX(3px); }

.lg-register {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.75rem; color: var(--ink);
  margin-bottom: 24px;
}
.lg-register a { color: var(--gold); font-weight: 700; text-decoration: none; transition: color .22s; }
.lg-register a:hover { color: var(--ink); }

.lg-footer {
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 0.56rem; color: var(--ink);
  letter-spacing: 0.08em;
  border-top: 1px solid rgba(200,134,10,0.1);
  padding-top: 16px;
}
.lg-footer span { color: var(--gold); }

@media (max-width: 520px) {
  .lg-card { padding: 36px 24px 28px; border-radius: 20px; }
  .lg-card-wide { padding: 36px 24px 28px; }
  .lg-logo-icon { width: 56px; height: 56px; font-size: 1.4rem; }
  .lg-logo-name { font-size: 1.45rem; }
  .lg-form-title { font-size: 1.5rem; }
  .lg-card-wide .lg-form-title { font-size: 1.4rem; }
  .lg-input { font-size: 0.82rem; }
  .lg-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 380px) {
  .lg-card { padding: 28px 16px 24px; border-radius: 16px; }
  .lg-card-wide { padding: 28px 16px 24px; }
  .lg-logo-icon { width: 50px; height: 50px; font-size: 1.2rem; }
  .lg-logo-name { font-size: 1.3rem; }
}
