/* ============================================================
   Quorum — Auth Page
   Theme: University of Ghana — Royal Blue & White
   ============================================================ */

.auth-page {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg);
  background-image: radial-gradient(ellipse 80% 60% at 50% -5%, rgba(0,63,135,0.10) 0%, transparent 70%);
}

/* ── Header ── */
.auth-header { padding: 20px 32px; display: flex; align-items: center; }
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; }
.brand-icon {
  width: 30px; height: 30px; background: var(--ug-blue);
  border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.brand-name {
  font-family: var(--font-display); font-size: 19px;
  font-weight: 500; color: var(--text); letter-spacing: -0.02em;
}

/* ── Main ── */
.auth-main {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 24px 20px 48px;
}

/* ── Box ── */
.auth-box {
  width: 100%; max-width: 400px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 32px;
  box-shadow: var(--shadow-lg);
}

/* ── Tabs ── */
.auth-tabs {
  display: flex; background: var(--ug-blue-ultra);
  border-radius: var(--radius); padding: 3px;
  margin-bottom: 28px; border: 1px solid var(--border);
  gap: 2px;
}
.auth-tab {
  flex: 1; padding: 8px 12px; background: transparent; border: none;
  color: var(--muted); font-family: var(--font-body);
  font-size: 13px; font-weight: 500; border-radius: 7px;
  cursor: pointer; transition: all 0.18s;
}
.auth-tab:hover { color: var(--text); }
.auth-tab.active {
  background: var(--surface); color: var(--accent);
  box-shadow: var(--shadow-sm); font-weight: 600;
}

/* ── Form header ── */
.form-header { margin-bottom: 22px; }
.form-header h2 { font-size: 22px; font-weight: 500; margin-bottom: 4px; letter-spacing: -0.02em; }
.form-header p { font-size: 13px; color: var(--muted); }

/* ── Label with inline link ── */
.field label { display: flex; align-items: center; justify-content: space-between; }
.label-link { font-size: 12px; color: var(--muted); font-weight: 400; text-decoration: none; }
.label-link:hover { color: var(--accent); text-decoration: none; }

/* ── Role selector ── */
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.role-card {
  border: 1.5px solid var(--border-strong); border-radius: var(--radius);
  padding: 13px 10px 11px; display: flex; flex-direction: column;
  align-items: center; gap: 7px; cursor: pointer;
  background: var(--surface); transition: all 0.16s;
  position: relative; color: var(--muted);
}
.role-card:hover { border-color: var(--ug-blue); background: var(--ug-blue-ultra); color: var(--ug-blue); }
.role-card.selected { border-color: var(--accent); background: var(--ug-blue-pale); color: var(--accent); }
.role-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.role-label { font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }

/* ── Pending notice ── */
.pending-notice {
  display: none; align-items: flex-start; gap: 12px;
  margin-top: 16px; padding: 14px 16px;
  background: var(--warning-bg); border: 1px solid var(--warning-border);
  border-radius: var(--radius); animation: fade-up 0.3s ease;
}
.pending-notice.show { display: flex; }
.pending-icon { color: var(--warning); flex-shrink: 0; margin-top: 1px; }
.pending-notice strong { display: block; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.pending-notice p { font-size: 12px; color: var(--muted); line-height: 1.6; }

@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

#pending-notice-register {
  background: var(--success-bg); border-color: var(--success-border);
}
#pending-notice-register .pending-icon { color: var(--success); }

/* ── Footer ── */
.auth-footer { margin-top: 24px; font-size: 12px; color: var(--muted-light); }

/* ── Button loading ── */
.btn-primary.loading { opacity: 0.7; pointer-events: none; position: relative; }
.btn-primary.loading::after {
  content: ''; width: 13px; height: 13px;
  border: 2px solid rgba(255,255,255,0.4); border-top-color: #fff;
  border-radius: 50%; animation: spin 0.6s linear infinite;
  margin-left: 8px; display: inline-block; vertical-align: middle;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  .auth-box { padding: 24px 20px; border-radius: var(--radius-lg); border: none; box-shadow: none; background: transparent; }
  .auth-header { padding: 16px 20px; }
}

/* ── Panel visibility ── */
.form-panel { display: none; }
.form-panel.active { display: block; }
