/* ============================================================
   WeddingTablePlannerOnline.com — Auth styles
   ============================================================ */

:root {
  --pink:       #C9748A;
  --dark-rose:  #6B2D3E;
  --deeper:     #4A1A28;
  --blush:      #F7EEF1;
  --mid-rose:   #E8D0D8;
  --white:      #FFFFFF;
  --body-text:  #4A4A4A;
  --label-text: #5A3040;
  --danger:     #C0392B;
  --success:    #27AE60;
  --radius:     12px;
  --transition: .18s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  color: var(--body-text);
  background: var(--blush);
}

a { color: var(--pink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ── Layout ──────────────────────────────────────────────── */

.auth-layout {
  display: flex;
  min-height: 100vh;
}

/* ── Hero (left panel) ───────────────────────────────────── */

.auth-hero {
  position: relative;
  flex: 0 0 42%;
  background: linear-gradient(145deg, var(--deeper) 0%, #8B2040 55%, var(--pink) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 80%, rgba(255,255,255,.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(255,255,255,.04) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 48px 40px;
  max-width: 340px;
}

.hero-logo {
  font-size: 36px;
  color: rgba(255,255,255,.9);
  margin-bottom: 28px;
  animation: floatRing 4s ease-in-out infinite;
}

@keyframes floatRing {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-6px); }
}

.hero-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 32px;
}

.hero-tagline em {
  font-style: italic;
  font-weight: 500;
  color: rgba(255,255,255,.85);
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255,255,255,.88);
  font-size: 14px;
  font-weight: 500;
}

.hero-features li i {
  color: rgba(255,255,255,.6);
  font-size: 12px;
  flex-shrink: 0;
}

/* Decorative rings SVG */
.hero-rings {
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 260px;
  opacity: .3;
  z-index: 1;
  pointer-events: none;
}

/* ── Right side (card area) ──────────────────────────────── */

.auth-card-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--blush);
}

.auth-card {
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 4px 40px rgba(107,45,62,.12), 0 1px 6px rgba(107,45,62,.06);
  padding: 44px 48px;
  width: 100%;
  max-width: 420px;
  position: relative;
  overflow: hidden;
}

/* subtle corner flourish */
.auth-card::before {
  content: '';
  position: absolute;
  top: -48px;
  right: -48px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,116,138,.10) 0%, transparent 70%);
  pointer-events: none;
}

/* ── Brand ───────────────────────────────────────────────── */

.auth-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--pink), var(--dark-rose));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 16px;
  flex-shrink: 0;
}

.auth-brand-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--dark-rose);
  letter-spacing: -.2px;
}

/* ── Panels (animated transitions) ──────────────────────── */

.auth-panel {
  display: none;
  animation: panelIn .25s ease both;
}

.auth-panel.active {
  display: block;
}

@keyframes panelIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Headings ────────────────────────────────────────────── */

.auth-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--dark-rose);
  margin-bottom: 6px;
  line-height: 1.2;
}

.auth-sub {
  font-size: 14px;
  color: #888;
  margin-bottom: 28px;
  line-height: 1.5;
}

/* ── Form ────────────────────────────────────────────────── */

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--label-text);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.field-icon {
  position: absolute;
  left: 14px;
  color: #bbb;
  font-size: 14px;
  pointer-events: none;
  transition: color var(--transition);
  z-index: 1;
}

.input-wrap input {
  width: 100%;
  padding: 11px 42px 11px 40px;
  border: 1.5px solid var(--mid-rose);
  border-radius: 10px;
  background: var(--blush);
  font-size: 14px;
  color: var(--body-text);
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  outline: none;
}

.input-wrap input:focus {
  border-color: var(--pink);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(201,116,138,.13);
}

.input-wrap input:focus + .field-icon,
.input-wrap:focus-within .field-icon {
  color: var(--pink);
}

.input-wrap input.invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,.1);
}

.toggle-pw {
  position: absolute;
  right: 12px;
  color: #bbb;
  font-size: 14px;
  padding: 4px;
  transition: color var(--transition);
  z-index: 1;
}
.toggle-pw:hover { color: var(--pink); }

.field-error {
  font-size: 12px;
  color: var(--danger);
  min-height: 16px;
  line-height: 1.3;
}

/* ── Password strength ───────────────────────────────────── */

.pw-strength {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 4px;
}

.pw-strength-bar {
  flex: 1;
  height: 4px;
  background: var(--mid-rose);
  border-radius: 99px;
  overflow: hidden;
}

.pw-strength-fill {
  height: 100%;
  width: 0;
  border-radius: 99px;
  transition: width .3s ease, background .3s ease;
}

.pw-strength-fill.weak   { background: var(--danger); }
.pw-strength-fill.fair   { background: #E67E22; }
.pw-strength-fill.good   { background: #F1C40F; }
.pw-strength-fill.strong { background: var(--success); }

.pw-strength-label {
  font-size: 11px;
  font-weight: 600;
  min-width: 44px;
  text-align: right;
  color: #aaa;
  transition: color .3s ease;
}

/* ── Feedback messages ───────────────────────────────────── */

.hidden {
  display: none !important;
}

.form-error {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #FDF0EE;
  border: 1px solid rgba(192,57,43,.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--danger);
  line-height: 1.45;
}

.form-error i { flex-shrink: 0; margin-top: 1px; }

.form-success {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: #EDF9F2;
  border: 1px solid rgba(39,174,96,.2);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13px;
  color: var(--success);
  line-height: 1.45;
}

.form-success i { flex-shrink: 0; margin-top: 1px; }

/* ── Submit button ───────────────────────────────────────── */

.btn-auth {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, var(--pink) 0%, var(--dark-rose) 100%);
  color: #fff;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .2px;
  transition: opacity var(--transition), transform .1s, box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(107,45,62,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 4px;
}

.btn-auth:hover:not(:disabled) {
  opacity: .92;
  box-shadow: 0 6px 20px rgba(107,45,62,.35);
}

.btn-auth:active:not(:disabled) { transform: scale(.98); }

.btn-auth:disabled {
  opacity: .65;
  cursor: not-allowed;
}

.btn-spinner { display: flex; align-items: center; }

/* ── Social login ────────────────────────────────────────── */

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 18px 0;
  color: #aaa;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #eee;
}

.btn-google {
  width: 100%;
  padding: 11px;
  background: #fff;
  color: #3c4043;
  border: 1px solid #dadce0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background var(--transition), box-shadow var(--transition);
}
.btn-google:hover { background: #f7f7f8; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.btn-google img { width: 18px; height: 18px; }

/* ── Utility buttons / links ─────────────────────────────── */

.link-btn {
  color: var(--pink);
  font-size: 13px;
  font-weight: 600;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color var(--transition);
}
.link-btn:hover { color: var(--dark-rose); text-decoration: underline; }

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #999;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 20px;
  transition: color var(--transition);
}
.back-btn:hover { color: var(--pink); }

/* ── Footer links ────────────────────────────────────────── */

.auth-switch {
  text-align: center;
  font-size: 13px;
  color: #999;
  margin-top: 22px;
}

.auth-legal {
  font-size: 12px;
  color: #bbb;
  margin-top: 20px;
  text-align: center;
  line-height: 1.6;
}

.auth-legal a { color: #bbb; text-decoration: underline; }
.auth-legal a:hover { color: var(--pink); }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 820px) {
  .auth-hero { display: none; }
  .auth-card-wrap { padding: 32px 16px; background: var(--blush); }
  .auth-card { padding: 36px 28px; border-radius: 16px; }
}

@media (max-width: 480px) {
  .auth-card { padding: 28px 20px; box-shadow: none; border-radius: 0; }
  .auth-card-wrap { padding: 0; background: #fff; }
  html, body { background: #fff; }
}
