/* ============================================================
   Mensality × Abranches Fight Team
   Paleta extraída da logo real do time: preto, vermelho, branco.
   Tipografia pesada (Anton) pra títulos, ecoando o impacto da
   marca; sans neutra (Inter) pro conteúdo funcional.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --black: #0d0d0d;
  --black-soft: #1a1a1a;
  --red: #c10e10;
  --red-bright: #e2231f;
  --white: #ffffff;
  --paper: #f5f5f5;
  --ink: #141414;
  --ink-soft: #63636b;
  --border: #e3e3e3;

  --success: #2f7a4d;
  --success-bg: #e6f2ea;
  --warn: #b06a00;
  --warn-bg: #fbf0dc;
  --danger: #c10e10;
  --danger-bg: #fbe7e6;

  --font-display: 'Anton', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;

  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--black);
  margin: 0;
}

a { color: var(--red); }

/* ---------- Login ---------- */

.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--black);
}

@media (max-width: 860px) {
  .login-screen { grid-template-columns: 1fr; }
  .login-hero { min-height: 240px; padding: 40px 32px; }
}

.login-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 56px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(193,14,16,0.18) 0%, transparent 55%),
    var(--black);
  border-right: 4px solid var(--red);
}

.login-hero img.logo-wordmark {
  max-width: 340px;
  width: 80%;
  height: auto;
  margin-bottom: 22px;
}

.login-hero .rule {
  width: 48px;
  height: 4px;
  background: var(--red);
  margin: 0 0 18px;
  border: none;
}

.login-hero .tagline {
  color: rgba(255,255,255,0.68);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.55;
}

.login-hero .product-tag {
  margin-top: 32px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.login-hero .product-tag b { color: rgba(255,255,255,0.75); font-weight: 600; }

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper);
  padding: 40px;
}

.login-card { width: 100%; max-width: 360px; }
.login-card h2 { font-size: 26px; margin-bottom: 6px; }
.login-card .sub { color: var(--ink-soft); font-size: 14px; margin-bottom: 28px; font-family: var(--font-body); }

/* ---------- Formulários (compartilhado) ---------- */

label { display: block; font-size: 13px; color: var(--ink-soft); margin: 14px 0 6px; font-weight: 500; }

input, select {
  width: 100%;
  padding: 11px 13px;
  border: 1.5px solid var(--border);
  border-radius: 6px;
  font-size: 15px;
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--red);
}

button {
  background: var(--black);
  color: white;
  border: none;
  padding: 11px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.15s ease;
}

button:hover { background: var(--black-soft); }

button.primary-red { background: var(--red); }
button.primary-red:hover { background: var(--red-bright); }

button.secondary {
  background: transparent;
  color: var(--black);
  border: 1.5px solid var(--border);
}
button.secondary:hover { background: var(--white); border-color: var(--black); }

.error { color: var(--danger); font-size: 13px; margin-top: 10px; }

/* ---------- Shell do app (sidebar + conteúdo) ---------- */

.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }

@media (max-width: 780px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

.sidebar {
  background: var(--black);
  color: white;
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  border-right: 4px solid var(--red);
}

.sidebar img.logo-seal { width: 64px; height: 64px; border-radius: 50%; margin-bottom: 14px; }

.sidebar .who {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}
.sidebar .who b { color: white; display: block; font-size: 15px; margin-bottom: 2px; }

.sidebar .rule { width: 32px; height: 3px; background: var(--red); border: none; margin: 20px 0; }

.sidebar .nav-item {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
  color: rgba(255,255,255,0.85);
  font-size: 14px;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  margin-bottom: 8px;
}

.sidebar .product-tag {
  margin-top: auto;
  padding-top: 20px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
}

.sidebar .logout {
  margin-top: 14px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.75);
}
.sidebar .logout:hover { border-color: white; color: white; background: transparent; }

.main { padding: 40px 44px; max-width: 1000px; }

.main .page-title { font-size: 30px; margin-bottom: 30px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 40px 0 16px;
}
.section-head h2 { font-size: 20px; }

/* ---------- Cards de resumo ---------- */

.summary-row {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  overflow: hidden;
}

.summary-cell {
  flex: 1;
  padding: 20px 22px;
  border-right: 1px solid var(--border);
}
.summary-cell:last-child { border-right: none; }

.summary-cell .value {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 30px;
  color: var(--black);
}
.summary-cell.highlight { background: var(--black); }
.summary-cell.highlight .value { color: var(--red-bright); font-size: 32px; }
.summary-cell.highlight .label { color: rgba(255,255,255,0.55); }

.summary-cell .label {
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 2px;
}

/* ---------- Tabela de alunos ---------- */

table { width: 100%; border-collapse: collapse; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
th, td { text-align: left; padding: 13px 16px; font-size: 14px; }
tbody tr { border-top: 1px solid var(--border); }
tbody tr:hover { background: #fafafa; }
th { color: var(--ink-soft); font-weight: 500; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; background: #fafafa; }

.student-name { display: flex; align-items: center; gap: 10px; }

.avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--black);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 12px;
  flex-shrink: 0;
}

.badge { padding: 4px 10px; border-radius: 20px; font-size: 12px; font-weight: 600; }
.badge.active { background: var(--success-bg); color: var(--success); }
.badge.pending { background: var(--warn-bg); color: var(--warn); }
.badge.canceled { background: var(--danger-bg); color: var(--danger); }

.row-actions { text-align: right; }
.row-actions button { margin-top: 0; padding: 7px 12px; font-size: 13px; }

/* ---------- Modal ---------- */

.modal-bg {
  display: none;
  position: fixed; inset: 0; background: rgba(13,13,13,0.6);
  align-items: center; justify-content: center; z-index: 10;
}
.modal-bg.open { display: flex; }
.modal {
  background: var(--white); border-radius: 10px; padding: 32px; width: 90%; max-width: 440px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  border-top: 4px solid var(--red);
}
.modal h2 { font-size: 22px; margin-bottom: 4px; }

/* ---------- Página de confirmação (aluno) ---------- */

.confirm-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black);
  padding: 24px;
}

.confirm-card {
  background: var(--white);
  border-radius: 10px;
  padding: 44px 40px;
  max-width: 420px;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
  border-top: 5px solid var(--red);
}

.confirm-card img.logo-seal { width: 72px; height: 72px; border-radius: 50%; margin-bottom: 18px; }

.confirm-icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 24px;
  font-weight: 700;
}
.confirm-icon.success { background: var(--success-bg); color: var(--success); }
.confirm-icon.pending { background: var(--warn-bg); color: var(--warn); }
.confirm-icon.failure { background: var(--danger-bg); color: var(--danger); }

.confirm-card h1 { font-size: 24px; margin-bottom: 10px; }
.confirm-card p { color: var(--ink-soft); font-size: 15px; line-height: 1.55; font-family: var(--font-body); }
