/* ============================================================
   AttendX — Auth Page Styles (index.html)
   ============================================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(79,142,247,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79,142,247,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: '';
  position: fixed;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,142,247,0.08) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

/* ── Left panel ── */
.left {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  border-right: 1px solid var(--border);
  background: var(--sidebar-bg);
}

.left-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; padding: 48px 0; }

.left-hero h1 { font-size: 42px; line-height: 1.15; margin-bottom: 20px; }
.left-hero h1 span { color: var(--accent); }
.left-hero p { font-size: 15px; color: var(--muted); max-width: 340px; line-height: 1.7; margin-bottom: 40px; }

.features { display: flex; flex-direction: column; gap: 16px; }

.feature-item {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 14px;
}

.feature-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.left-footer { font-size: 13px; color: var(--muted); }

/* ── Right panel ── */
.right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
}

.auth-card { width: 100%; max-width: 420px; }

/* Tabs */
.tabs {
  display: flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px;
  margin-bottom: 32px;
}

.tab-btn {
  flex: 1;
  padding: 9px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s;
}

.tab-btn.active { background: var(--accent); color: #fff; }

.form-header { margin-bottom: 28px; }
.form-header h2 { font-size: 26px; margin-bottom: 6px; }
.form-header p { font-size: 14px; color: var(--muted); }

/* Role selector */
.role-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 24px;
}

.role-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  background: var(--surface);
  transition: all 0.2s;
  position: relative;
}

.role-card:hover { border-color: var(--border-hover); background: var(--surface2); }
.role-card.selected { border-color: var(--accent); background: var(--accent-dim); }
.role-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }

.role-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.role-card.selected .role-label { color: var(--accent); }

.forgot { text-align: right; margin-top: -8px; margin-bottom: 16px; }
.forgot a { font-size: 13px; color: var(--accent); }

.pending-notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  display: none;
}

.pending-notice strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 4px; }

.form-panel { display: none; }
.form-panel.active { display: block; }

@media (max-width: 800px) {
  .page { grid-template-columns: 1fr; }
  .left { display: none; }
  .right { padding: 32px 24px; }
}
