/* BestMom Auth Pages — v1.0 */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;800&family=DM+Sans:wght@300;400;500;600;700&display=swap');

:root {
  --auth-coral:    #D95F4B;
  --auth-coral-2:  #E8795E;
  --auth-warm:     #F5E6DC;
  --auth-dark:     #1C0F0A;
  --auth-text:     #2D1810;
  --auth-muted:    #8A6658;
  --auth-border:   rgba(217,95,75,0.2);
  --auth-white:    #FFFFFF;
  --auth-surface:  #FDF8F5;
  --auth-pink:     #E8457A;
  --auth-radius:   20px;
}

#bma-auth-app {
  font-family: 'DM Sans', sans-serif;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  position: relative;
  overflow: hidden;
  background: var(--auth-surface);
}

/* ── BLOBS ── */
.bma-auth-blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}
.bma-auth-blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(217,95,75,0.18) 0%, transparent 70%);
  top: -100px; right: -100px;
  animation: bma-blob-drift 12s ease-in-out infinite;
}
.bma-auth-blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(232,69,122,0.12) 0%, transparent 70%);
  bottom: -50px; left: -80px;
  animation: bma-blob-drift 15s ease-in-out infinite reverse;
}
.bma-auth-blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(245,230,220,0.8) 0%, transparent 70%);
  top: 40%; left: 40%;
  animation: bma-blob-drift 9s ease-in-out infinite;
}
@keyframes bma-blob-drift {
  0%,100% { transform: translate(0,0) scale(1); }
  33%      { transform: translate(20px,-20px) scale(1.05); }
  66%      { transform: translate(-15px,15px) scale(0.96); }
}

/* ── CARD ── */
.bma-auth-card {
  position: relative; z-index: 1;
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 560px;
  background: var(--auth-white);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(217,95,75,0.18), 0 4px 20px rgba(0,0,0,0.06);
  animation: bma-card-in .5s cubic-bezier(.16,1,.3,1);
}
@keyframes bma-card-in {
  from { opacity:0; transform: translateY(24px) scale(.97); }
  to   { opacity:1; transform: translateY(0) scale(1); }
}

/* ── LEFT PANEL ── */
.bma-auth-left {
  flex: 0 0 42%;
  background: linear-gradient(160deg, var(--auth-coral) 0%, #C04A38 50%, #8B2E1F 100%);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.bma-auth-left::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.bma-auth-brand {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 40px; position: relative; z-index: 1;
}
.bma-auth-brand-logo { font-size: 26px; }
.bma-auth-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 800;
  color: rgba(255,255,255,0.95);
  letter-spacing: -0.5px;
}

.bma-auth-illustration {
  flex: 1;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
}
.bma-auth-circle-bg {
  width: 180px; height: 180px;
  background: rgba(255,255,255,0.12);
  border-radius: 50%;
  position: absolute;
  animation: bma-pulse 3s ease-in-out infinite;
}
@keyframes bma-pulse {
  0%,100% { transform: scale(1); opacity:1; }
  50%      { transform: scale(1.06); opacity:.8; }
}
.bma-auth-doctor-emoji {
  font-size: 90px; position: relative; z-index: 1;
  filter: drop-shadow(0 8px 24px rgba(0,0,0,0.2));
  animation: bma-float 4s ease-in-out infinite;
}
@keyframes bma-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* Floating tags */
.bma-auth-floating-tag {
  position: absolute;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px; font-weight: 600;
  padding: 5px 12px; border-radius: 20px;
  white-space: nowrap;
  animation: bma-tag-float 6s ease-in-out infinite;
}
.bma-auth-tag-1 { top: 10%;  left: -10px;  animation-delay: 0s; }
.bma-auth-tag-2 { top: 60%;  right: -10px; animation-delay: 1.5s; }
.bma-auth-tag-3 { bottom: 5%; left: 10px;  animation-delay: 3s; }
@keyframes bma-tag-float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

.bma-auth-left-quote {
  font-family: 'Playfair Display', serif;
  font-size: 15px; line-height: 1.6;
  color: rgba(255,255,255,0.85);
  font-style: italic;
  text-align: center;
  position: relative; z-index: 1;
  padding-top: 16px;
}

/* ── RIGHT PANEL ── */
.bma-auth-right {
  flex: 1;
  padding: 36px 40px;
  display: flex; flex-direction: column;
  overflow-y: auto;
}

/* ── TABS ── */
.bma-auth-tabs {
  display: flex; gap: 0;
  background: var(--auth-warm);
  border-radius: 12px; padding: 4px;
  margin-bottom: 28px;
}
.bma-auth-tab {
  flex: 1; padding: 10px;
  border: none; background: transparent;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; font-weight: 600;
  color: var(--auth-muted);
  border-radius: 9px; cursor: pointer;
  transition: all .2s;
}
.bma-auth-tab.active {
  background: var(--auth-white);
  color: var(--auth-coral);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

/* ── FORM CONTENT ── */
.bma-auth-form-wrap {
  animation: bma-form-in .3s ease;
}
@keyframes bma-form-in {
  from { opacity:0; transform: translateX(12px); }
  to   { opacity:1; transform: translateX(0); }
}

.bma-auth-form-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700;
  color: var(--auth-text);
  margin-bottom: 4px;
}
.bma-auth-form-sub {
  font-size: 14px; color: var(--auth-muted);
  margin-bottom: 24px;
}

/* ── FIELDS ── */
.bma-auth-field { margin-bottom: 16px; }
.bma-auth-label {
  display: block;
  font-size: 12px; font-weight: 600;
  color: var(--auth-muted);
  text-transform: uppercase; letter-spacing: .6px;
  margin-bottom: 6px;
}
.bma-auth-input-wrap {
  position: relative; display: flex; align-items: center;
}
.bma-auth-input-icon {
  position: absolute; left: 14px;
  font-size: 15px; pointer-events: none;
  opacity: .7;
}
.bma-auth-input {
  width: 100%; padding: 13px 14px 13px 40px;
  border: 1.5px solid var(--auth-border);
  border-radius: 12px;
  background: var(--auth-surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px; color: var(--auth-text);
  transition: all .2s;
  box-sizing: border-box;
}
.bma-auth-input:focus {
  outline: none;
  border-color: var(--auth-coral);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(217,95,75,0.1);
}
.bma-auth-toggle-pass {
  position: absolute; right: 12px;
  background: none; border: none;
  font-size: 16px; cursor: pointer; opacity: .5;
  transition: opacity .15s;
}
.bma-auth-toggle-pass:hover { opacity: 1; }

/* Password strength */
.bma-auth-password-strength {
  font-size: 11px; font-weight: 600;
  margin-top: 5px; padding-left: 2px;
  min-height: 16px;
}
.bma-auth-strength-weak   { color: #EF4444; }
.bma-auth-strength-medium { color: #F59E0B; }
.bma-auth-strength-strong { color: #22C55E; }

/* ── STAGE PILLS ── */
.bma-auth-stage-pills {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px;
}
.bma-auth-stage-pill {
  padding: 7px 14px; border-radius: 18px;
  border: 1.5px solid var(--auth-border);
  background: var(--auth-surface);
  font-family: 'DM Sans', sans-serif;
  font-size: 12px; font-weight: 600;
  color: var(--auth-muted); cursor: pointer;
  transition: all .15s;
}
.bma-auth-stage-pill:hover  { border-color: var(--auth-coral); color: var(--auth-coral); }
.bma-auth-stage-pill.active { background: var(--auth-coral); color: #fff; border-color: var(--auth-coral); }

/* ── ROW ── */
.bma-auth-row-between {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 18px; margin-top: -4px;
}
.bma-auth-remember {
  display: flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--auth-muted); cursor: pointer;
}
.bma-auth-link-btn {
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--auth-coral);
  cursor: pointer; font-weight: 600;
  padding: 0; transition: opacity .15s;
}
.bma-auth-link-btn:hover { opacity: .75; }

/* ── CHECKBOX ── */
.bma-auth-checkbox-label {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 12px; color: var(--auth-muted);
  margin-bottom: 16px; cursor: pointer; line-height: 1.5;
}
.bma-auth-link { color: var(--auth-coral); font-weight: 600; }

/* ── BUTTON ── */
.bma-auth-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--auth-coral) 0%, #C04A38 100%);
  color: #fff; border: none; border-radius: 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  box-shadow: 0 4px 16px rgba(217,95,75,0.35);
  margin-bottom: 14px;
}
.bma-auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(217,95,75,0.4);
}
.bma-auth-btn:active { transform: translateY(0); }
.bma-auth-btn:disabled { opacity:.6; cursor:not-allowed; transform:none; }

.bma-auth-btn-outline {
  background: transparent;
  border: 1.5px solid var(--auth-border);
  color: var(--auth-coral);
  box-shadow: none;
}
.bma-auth-btn-outline:hover {
  background: rgba(217,95,75,0.06);
  box-shadow: none;
}

/* ── DIVIDER ── */
.bma-auth-divider {
  text-align: center; position: relative;
  margin: 4px 0 14px;
}
.bma-auth-divider::before {
  content: ''; position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px; background: var(--auth-border);
}
.bma-auth-divider span {
  position: relative; background: #fff;
  padding: 0 12px; font-size: 12px; color: var(--auth-muted);
}

/* ── ERROR / SUCCESS ── */
.bma-auth-error, .bma-auth-success {
  border-radius: 10px; padding: 10px 14px;
  font-size: 13px; font-weight: 500;
  margin-bottom: 14px;
}
.bma-auth-error   { background: rgba(239,68,68,0.08); color: #DC2626; }
.bma-auth-success { background: rgba(34,197,94,0.1);  color: #16A34A; }

/* ── BACK BTN ── */
.bma-auth-back-btn {
  background: none; border: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px; color: var(--auth-coral);
  font-weight: 600; cursor: pointer; padding: 0;
  margin-bottom: 16px; display: block;
  transition: opacity .15s;
}
.bma-auth-back-btn:hover { opacity:.75; }

/* ── RESPONSIVE ── */
@media (max-width: 680px) {
  .bma-auth-left   { display: none; }
  .bma-auth-card   { max-width: 440px; min-height: auto; }
  .bma-auth-right  { padding: 28px 24px; }
}
@media (max-width: 400px) {
  .bma-auth-right  { padding: 24px 18px; }
  .bma-auth-form-title { font-size: 20px; }
}
