/* CampusLogin Onboard Tags — shared mobile-first styles */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #f0f4f8;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  color: #1e293b;
  line-height: 1.5;
}

/* ── Card ──────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.10);
  padding: 2rem 1.5rem;
  width: 100%;
  max-width: 420px;
}

/* ── Branding ──────────────────────────────────────────────────────────────── */
.logo {
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: #2563eb;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

/* ── Typography ────────────────────────────────────────────────────────────── */
h1 { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
h2 { font-size: 1rem; font-weight: 600; margin-bottom: 0.75rem; color: #334155; }
p  { font-size: 0.9375rem; color: #475569; }

.state-icon { font-size: 2.5rem; text-align: center; margin-bottom: 1rem; }
.tag-token  { text-align: center; font-size: 0.8rem; color: #94a3b8; letter-spacing: 0.08em; margin-bottom: 1.25rem; }

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin: 1.25rem 0 0.75rem;
}

/* ── Divider ───────────────────────────────────────────────────────────────── */
.divider { border: none; border-top: 1px solid #e2e8f0; margin: 1.25rem 0; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
.field { margin-bottom: 1rem; }

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
  color: #334155;
}

label .hint {
  font-weight: 400;
  color: #94a3b8;
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="tel"],
textarea,
select {
  width: 100%;
  border: 1.5px solid #cbd5e1;
  border-radius: 8px;
  padding: 0.625rem 0.75rem;
  font-size: 0.9375rem;
  font-family: inherit;
  color: #1e293b;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  outline: none;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

textarea { resize: vertical; min-height: 100px; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover:not(:disabled) { background: #1d4ed8; }
.btn:disabled { background: #93c5fd; cursor: not-allowed; }

.btn-outline {
  background: transparent;
  border: 1.5px solid #2563eb;
  color: #2563eb;
}
.btn-outline:hover:not(:disabled) { background: #eff6ff; }

/* ── Contact display ────────────────────────────────────────────────────────── */
.contact-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.625rem 0;
  font-size: 0.9375rem;
  color: #1e293b;
}
.contact-item a { color: #2563eb; text-decoration: none; }
.contact-item a:hover { text-decoration: underline; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; }

/* ── Alerts ────────────────────────────────────────────────────────────────── */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}
.alert-success { background: #dcfce7; color: #166534; }
.alert-error   { background: #fee2e2; color: #991b1b; }
.alert-info    { background: #dbeafe; color: #1e40af; }

/* ── Loading spinner ────────────────────────────────────────────────────────── */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #2563eb;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 1rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

#loading { text-align: center; padding: 0.5rem 0; }

/* ── Radio group (contact mode) ─────────────────────────────────────────────── */
.radio-group { display: flex; flex-direction: column; gap: 0.5rem; }
.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  cursor: pointer;
}
.radio-option input[type="radio"] { width: auto; }

/* ── Conditional fields ──────────────────────────────────────────────────────── */
.conditional { display: none; }
.conditional.visible { display: block; }

/* ── Footer ────────────────────────────────────────────────────────────────── */
footer {
  margin-top: 1.5rem;
  font-size: 0.75rem;
  color: #94a3b8;
  text-align: center;
}
