/**
 * index.css — Legacy / Auth styles only
 *
 * This file is kept for auth pages (login, register, pending)
 * which still reference it via <link rel="stylesheet" href="/Styles/index.css">
 *
 * Do NOT add student/teacher/admin styles here.
 * Use shared.css + the role-specific CSS file instead.
 */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #f4f6fb;
  color: #1f2937;
  min-height: 100vh;
}

body a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* ── Auth pages (login, register, pending) ───────────── */
.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
  background: #eef2ff;
}

.auth-card {
  width: min(420px, 100%);
  background: #ffffff;
  border-radius: 1.25rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
  padding: 2rem;
}

.auth-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.button.auth-language-toggle {
  width: 2.65rem;
  height: 2.65rem;
  min-width: 2.65rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid #1d4ed8;
  border-radius: 50%;
  font-size: 0.85rem;
  font-weight: 700;
}

.auth-card h1 {
  margin: 0 0 0.5rem;
}

.auth-card p {
  margin: 0 0 1.5rem;
  color: #4b5563;
}

.auth-form {
  display: grid;
  gap: 1rem;
}

.auth-form label {
  display: grid;
  gap: 0.5rem;
  font-weight: 600;
  color: #111827;
}

.auth-form input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 0.85rem;
  padding: 0.9rem 1rem;
  font-size: 1rem;
}

.auth-form input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.auth-caption {
  margin-top: 1rem;
  color: #6b7280;
  font-size: 0.9rem;
}

.auth-caption a {
  color: #2563eb;
}

/* ── Auth page responsive ──────────────────────────────── */
@media (max-width: 639px) {
  .auth-page {
    padding: 1rem;
    align-items: start;
    padding-top: 2rem;
  }

  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 1rem;
  }

  .auth-card h1 {
    font-size: 1.5rem;
  }
}

.button {
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background-color 0.15s ease;
  width: 100%;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: #162B46;
  color: #ffffff;
}

.button-primary:hover {
  background: #0F1E2E;
}