/* ─── IMPORT GOOGLE SANS ─────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500&display=swap');

/* ─── RESET & BASE ───────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Roboto', sans-serif;
  background: #ffffff;
  color: #202124;
  min-height: 100vh;
}

/* ─── LOGO ───────────────────────────────────────────── */
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 32px; /* ← adjust space below logo */
}
.logo img {
  height: 40px;
  width: auto;
}
.logo-text {
  font-family: 'Google Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: #1a73e8;
  letter-spacing: -0.5px;
}

/* ─── PAGE WRAPPER ───────────────────────────────────── */
.page-wrap {
  max-width: 440px;
  margin: 0 auto;
  padding: 48px 24px 64px; /* ← top/side/bottom page padding */
}

/* ─── TITLE ──────────────────────────────────────────── */
.page-title {
  font-family: 'Google Sans', sans-serif;
  font-size: 24px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 8px; /* ← space between title and subtitle */
  line-height: 1.3;   /* ← title line height */
}

/* ─── SUBTITLE ───────────────────────────────────────── */
.page-subtitle {
  font-family: 'Roboto', sans-serif;
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 28px; /* ← space between subtitle and first input */
  line-height: 1.5;    /* ← subtitle line height */
}

/* ─── INPUTS ─────────────────────────────────────────── */
.input-wrap {
  margin-bottom: 8px; /* ← space between input and helper text */
}

input[type="text"],
input[type="password"],
input[type="tel"],
input[type="number"] {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: 'Roboto', sans-serif;
  border: 1px solid #dadce0; /* ← change input border color here */
  border-radius: 4px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
  background: #fff;
  color: #202124;
}
input::placeholder { color: #80868b; }
input:focus {
  border-color: #1a73e8; /* ← focused border color */
  box-shadow: 0 0 0 2px rgba(26,115,232,.15);
}

/* Red input variant */
input.input-red {
  border-color: #d93025;
}
input.input-red:focus {
  border-color: #d93025;
  box-shadow: 0 0 0 2px rgba(217,48,37,.15);
}

/* ─── HELPER / GOOD NAME TEXT ────────────────────────── */
.helper-text {
  font-size: 13px;
  color: #1a73e8;
  margin-top: 6px;  /* ← space between input bottom and helper text */
  margin-bottom: 0;
  font-family: 'Roboto', sans-serif;
}
.helper-text.red {
  color: #d93025;
}

/* ─── SPACING BLOCK ──────────────────────────────────── */
.spacer { margin-bottom: 32px; } /* ← adjust space after good-name / before welcome row */

/* ─── BOTTOM ROW ─────────────────────────────────────── */
.bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px; /* ← space above welcome/next row */
}
.welcome-text {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  color: #1a73e8;
  font-weight: 500;
}

/* ─── CAPSULE BUTTON ─────────────────────────────────── */
.btn-next {
  background: #1a73e8;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 12px 28px;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s, box-shadow .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-next:hover { background: #1765cc; box-shadow: 0 2px 8px rgba(26,115,232,.35); }
.btn-next:disabled { background: #a8c7fa; cursor: not-allowed; }

/* ─── BACK BUTTON ────────────────────────────────────── */
.btn-back {
  background: transparent;
  color: #1a73e8;
  border: 1px solid #dadce0;
  border-radius: 999px;
  padding: 11px 28px;
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-back:hover { background: #f0f4ff; }

/* ─── USER BADGE (profile icon + name) ──────────────── */
.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1.5px solid #202124;
  border-radius: 999px;
  background: #fff;
  padding: 7px 18px 7px 10px;
  margin-bottom: 28px; /* ← space after user badge */
}
.user-badge-icon {
  width: 32px; height: 32px;
  background: #e8eaf6;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.user-badge-icon svg { width: 20px; height: 20px; fill: #5c6bc0; }
.user-badge-name {
  font-family: 'Google Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #202124;
}

/* ─── CHECKBOX ROW ───────────────────────────────────── */
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px; /* ← space above checkbox row */
}
.check-row input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: #1a73e8;
  cursor: pointer;
}
.check-row label {
  font-size: 14px;
  color: #5f6368;
  cursor: pointer;
}

/* ─── SUCCESS ICON ───────────────────────────────────── */
.success-icon {
  text-align: center;
  margin: 24px 0 8px;
}
.success-icon svg { width: 72px; height: 72px; }
.success-label {
  text-align: center;
  font-family: 'Google Sans', sans-serif;
  font-size: 20px;
  font-weight: 500;
  color: #188038;
  margin-bottom: 24px;
}

/* ─── LOADING SPINNER ────────────────────────────────── */
.loading-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(255,255,255,.85);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
}
.loading-overlay.active { display: flex; }
.spinner {
  width: 44px; height: 44px;
  border: 4px solid #e8eaed;
  border-top-color: #1a73e8;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text {
  font-family: 'Google Sans', sans-serif;
  font-size: 15px;
  color: #5f6368;
}

/* ─── SCHOOL PAGE EXTRAS ─────────────────────────────── */
.school-code {
  font-family: 'Google Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  color: #202124;
  text-align: center;
  margin: 24px 0 4px;
}
.school-notice {
  font-size: 15px;
  color: #202124;
  line-height: 1.6;
  margin-bottom: 20px;
}
.school-notice b { color: #202124; }
.school-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
}
.school-footer-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.school-footer-row span {
  font-size: 14px;
  color: #1a73e8;
}

/* ─── ADMIN PANEL ─────────────────────────────────────── */
/* (in admin/style.css for cleanliness) */
