/* ============================================================
   Auth page styles (login + signup combined)
   ============================================================ */

.auth-section {
  min-height: calc(100vh - var(--nav-h));
  padding: 40px 24px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #f5fbff 0%, #eaf6fc 60%, #f0f8ff 100%);
}

.auth-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  max-width: 1080px; width: 100%;
  background: var(--card);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow3);
  border: 1px solid var(--border);
  min-height: 600px;
}

/* ── LEFT VISUAL ── */
.auth-visual {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #e0f6fc 0%, #c8eef9 60%, #d0f0fb 100%);
  padding: 56px 48px;
  display: flex; align-items: center;
}
.auth-visual-bg::before {
  content:''; position:absolute; top:-100px; right:-100px;
  width:360px; height:360px; border-radius:50%;
  background: radial-gradient(circle, rgba(0,184,217,0.22) 0%, transparent 70%);
}
.auth-visual-bg::after {
  content:''; position:absolute; bottom:-80px; left:-80px;
  width:280px; height:280px; border-radius:50%;
  background: radial-gradient(circle, rgba(255,107,53,0.12) 0%, transparent 70%);
}
.auth-visual-content { position: relative; z-index: 1; max-width: 380px; }
.auth-visual h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 44px; font-weight: 900; color: var(--text);
  line-height: 1.05; margin-bottom: 14px; letter-spacing: -0.5px;
}
html[dir="rtl"] .auth-visual h2 { font-family: 'Noto Kufi Arabic', sans-serif; font-size: 36px; letter-spacing: 0; }
.auth-visual h2 br + * { color: var(--cyan2); }
.auth-visual p { color: var(--text2); font-size: 15px; line-height: 1.7; }

.auth-features { list-style: none; padding: 0; margin: 22px 0 0; }
.auth-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text2); margin-top: 10px;
}
.auth-features .dot { width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; flex-shrink: 0; }

.auth-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 30px; padding-top: 22px; border-top: 1px solid rgba(0,184,217,0.2);
}
.auth-stats > div { display: flex; flex-direction: column; }
.auth-stats strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 26px; font-weight: 900; color: var(--cyan2); line-height: 1;
}
.auth-stats span { font-size: 11px; color: var(--text3); font-weight: 600; margin-top: 4px; }

/* ── RIGHT FORM ── */
.auth-form-wrap {
  padding: 40px 48px;
  display: flex; flex-direction: column;
  background: var(--card);
}
.auth-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: 12px; margin-bottom: 28px;
}
.auth-tab {
  flex: 1; padding: 10px 16px; border-radius: 9px;
  background: transparent; border: none;
  font-family: inherit; font-size: 14px; font-weight: 700;
  color: var(--text3); cursor: pointer; transition: var(--t);
}
.auth-tab.active { background: var(--card); color: var(--text); box-shadow: var(--shadow); }

.auth-form { width: 100%; flex: 1; display: flex; flex-direction: column; }
.auth-form h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 30px; font-weight: 900; color: var(--text);
  margin-bottom: 6px; letter-spacing: -0.3px;
}
html[dir="rtl"] .auth-form h2 { font-family: 'Noto Kufi Arabic', sans-serif; letter-spacing: 0; font-size: 26px; }
.auth-form .muted { font-size: 14px; margin-bottom: 24px; }

.form-grid-2 {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.auth-row {
  display: flex; justify-content: space-between; align-items: center;
  margin: 4px 0 18px; flex-wrap: wrap; gap: 8px;
}
.link-cyan { color: var(--cyan2); font-size: 13px; font-weight: 600; }
.link-cyan:hover { text-decoration: underline; }

.divider {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 18px;
}
.divider::before, .divider::after { content:''; flex:1; height:1px; background: var(--border); }
.divider span { font-size: 11px; color: var(--text3); font-weight: 700; letter-spacing: 1.5px; }
html[dir="rtl"] .divider span { letter-spacing: 0; }

.social-btn {
  width: 100%; padding: 11px 14px; border-radius: 10px;
  background: var(--bg3); border: 1.5px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 600;
  cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: var(--t); font-family: inherit;
  margin-bottom: 10px;
}
.social-btn:hover { border-color: var(--cyan); background: var(--cyan-light); }

.auth-switch {
  text-align: center; margin-top: 22px;
  font-size: 13px; color: var(--text3);
}
.auth-switch .link-cyan { font-weight: 700; }

/* ── responsive ── */
@media (max-width: 900px) {
  .auth-card { grid-template-columns: 1fr; max-width: 480px; }
  .auth-visual { display: none; }
  .auth-form-wrap { padding: 32px 28px; }
}
@media (max-width: 480px) {
  .auth-form-wrap { padding: 24px 18px; }
  .form-grid-2 { grid-template-columns: 1fr; }
}
