/* ============================================================
   Mother's Club — Auth Page CSS (Login / Register)
   ============================================================ */

/* ─── Page Base ─────────────────────────────────────────────── */
body.mc-auth-body {
  background: linear-gradient(135deg, #FFF8F5 0%, rgba(91,184,184,.06) 50%, rgba(232,130,154,.06) 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

/* ─── Blobs ─────────────────────────────────────────────────── */
.blob-1 {
  position: fixed;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(91,184,184,.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.blob-2 {
  position: fixed;
  bottom: -80px; left: -80px;
  width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,130,154,.1), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.blob-3 {
  position: fixed;
  top: 40%; left: 40%;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.07), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ─── Header ────────────────────────────────────────────────── */
.mc-auth-header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: relative;
  z-index: 10;
}
.mc-auth-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mc-auth-logo img { height: 44px; width: auto; }
.mc-auth-site-name { font-size: 20px; font-weight: 900; color: var(--teal-dark); }
.mc-auth-header__action { font-size: 14px; color: var(--gray); }
.mc-auth-header__action a { color: var(--teal); font-weight: 700; }
.mc-auth-header__action a:hover { color: var(--teal-dark); }

/* ─── Page Content ───────────────────────────────────────────── */
.mc-auth-page__content {
  padding: 40px 24px;
  position: relative;
  z-index: 1;
}

.login-shell {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 32px;
}
.back-link:hover { color: var(--teal-dark); }

/* ─── Card ──────────────────────────────────────────────────── */
.login-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 20px 80px rgba(0,0,0,.12);
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
}

/* ─── Decorative Side ────────────────────────────────────────── */
.auth-side {
  background: linear-gradient(160deg, var(--teal-dark) 0%, #1e4f4f 100%);
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  top: -80px; left: -80px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
}
.auth-side::after {
  content: '';
  position: absolute;
  bottom: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
}
.auth-side-content { position: relative; z-index: 1; }
.auth-side-content img { height: 52px; width: auto; margin-bottom: 32px; filter: brightness(0) invert(1); }
.auth-side-content h2 { font-size: 28px; font-weight: 900; color: #fff; line-height: 1.4; margin-bottom: 14px; }
.auth-side-content p { font-size: 15px; color: rgba(255,255,255,.75); line-height: 1.8; margin-bottom: 32px; }
.auth-features { display: flex; flex-direction: column; gap: 16px; }
.auth-feature {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(255,255,255,.08);
  padding: 14px 16px;
  border-radius: 12px;
  backdrop-filter: blur(4px);
}
.auth-feature-icon { font-size: 22px; flex-shrink: 0; }
.auth-feature div { color: rgba(255,255,255,.9); font-size: 14px; font-weight: 600; line-height: 1.5; }

/* ─── Form Panel ────────────────────────────────────────────── */
.auth-form-panel { padding: 0; display: flex; flex-direction: column; }

/* Tabs */
.auth-tabs {
  display: flex;
  border-bottom: 2px solid var(--border);
}
.auth-tab {
  flex: 1;
  padding: 18px;
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray);
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
}
.auth-tab:hover { color: var(--teal-dark); }
.auth-tab.active { color: var(--teal-dark); border-bottom-color: var(--teal); }

/* Form panel content */
.form-panel { padding: 32px 36px; }
.form-panel.hidden { display: none; }
.auth-form-title { margin-bottom: 24px; }
.auth-form-title h3 { font-size: 22px; font-weight: 900; margin-bottom: 6px; color: var(--dark); }
.auth-form-title p { font-size: 14px; color: var(--gray); line-height: 1.6; }

/* ─── Messages ──────────────────────────────────────────────── */
.mc-auth-msg {
  border-radius: 10px;
  padding: 13px 16px;
  font-size: 14px;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  line-height: 1.5;
}
.mc-auth-msg.visible { display: flex; }
.mc-auth-msg.success-msg {
  background: linear-gradient(135deg, rgba(91,184,184,.1), rgba(91,184,184,.05));
  border: 2px solid var(--teal);
  color: var(--teal-dark);
}
.mc-auth-msg.error-msg {
  background: rgba(232,130,154,.1);
  border: 2px solid var(--rose);
  color: var(--rose-dark);
}

/* ─── Form Fields ────────────────────────────────────────────── */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 7px;
}
.form-note { font-size: 11px; color: var(--gray); font-weight: 500; }
.form-input-wrap { position: relative; display: flex; align-items: center; }
.form-input-icon {
  position: absolute;
  right: 12px;
  font-size: 15px;
  pointer-events: none;
  z-index: 1;
}
.form-input {
  width: 100%;
  padding: 11px 40px 11px 40px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--dark);
  background: #fafafa;
  transition: var(--transition);
  outline: none;
  direction: rtl;
}
.form-input:focus {
  border-color: var(--teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(91,184,184,.1);
}
.form-input.has-error {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(232,130,154,.1);
}
/* Input without icon */
.form-group > .form-input { padding: 11px 14px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-row .form-group { margin-bottom: 0; }
.form-row + .form-group { margin-top: 18px; }

/* Toggle password */
.toggle-password {
  position: absolute;
  left: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 15px;
  padding: 4px;
  opacity: .6;
  transition: opacity .2s;
}
.toggle-password:hover { opacity: 1; }

/* Form options (remember + forgot) */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.form-check {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--dark);
  cursor: pointer;
}
.form-check input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--teal);
  cursor: pointer;
}
.forgot-link { font-size: 13px; color: var(--teal); font-weight: 700; }
.forgot-link:hover { color: var(--teal-dark); }

/* ─── Password Strength ─────────────────────────────────────── */
.password-strength { margin-top: 8px; }
.strength-bar {
  height: 4px;
  border-radius: 2px;
  background: #F5F5F5;
  margin-bottom: 4px;
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 2px;
  width: 0%;
  transition: all .35s ease;
}
.strength-text { font-size: 11px; color: var(--gray); }

/* ─── Member Type Grid ──────────────────────────────────────── */
.member-type-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.member-type-card {
  border: 2px solid var(--border);
  border-radius: 10px;
  padding: 14px 10px;
  text-align: center;
  cursor: pointer;
  transition: all .25s;
}
.member-type-card:hover,
.member-type-card.selected {
  border-color: var(--teal);
  background: rgba(91,184,184,.06);
}
.type-icon { font-size: 28px; display: block; margin-bottom: 6px; }
.type-label { font-size: 12px; font-weight: 700; color: var(--dark); }
.member-type-card.selected .type-label { color: var(--teal-dark); }

/* ─── Auth Button ────────────────────────────────────────────── */
.btn-auth {
  width: 100%;
  justify-content: center;
  padding: 13px;
  font-size: 15px;
  border-radius: 10px;
  margin-bottom: 4px;
}

/* ─── Divider ────────────────────────────────────────────────── */
.form-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  font-size: 13px;
  color: var(--gray);
}
.form-divider::before,
.form-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ─── Social Buttons ────────────────────────────────────────── */
.social-btns { display: flex; gap: 10px; }
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-family: var(--font-ar);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
}
.social-btn:hover { border-color: var(--teal); background: rgba(91,184,184,.04); }
.social-btn.coming-soon { opacity: .5; cursor: not-allowed; }

/* ─── Loading Spinner ────────────────────────────────────────── */
.mc-btn-loader {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: mc-spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes mc-spin { to { transform: rotate(360deg); } }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 992px) {
  .login-card { grid-template-columns: 1fr; }
  .auth-side { display: none; }
}
@media (max-width: 600px) {
  .mc-auth-page__content { padding: 24px 14px; }
  .form-panel { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .login-card { border-radius: 18px; }
  .social-btns { flex-direction: column; }
}
