@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,600;9..144,700&family=Outfit:wght@400;500;600;700&display=swap");

:root {
  --navy: #071824;
  --ocean: #0c3d52;
  --sea: #14708a;
  --mist: #f3f8fa;
  --ink: #102432;
  --muted: #5c7380;
  --line: rgba(16, 36, 50, 0.12);
  --ok: #2f8f6b;
  --warn: #c45c2a;
  --white: #fff;
  --shadow: 0 18px 50px rgba(7, 24, 36, 0.12);
  --font: "Outfit", sans-serif;
  --display: "Fraunces", Georgia, serif;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(900px 400px at 0% 0%, rgba(20, 112, 138, 0.16), transparent 55%),
    linear-gradient(180deg, #eef6f8, #f7fbfc 40%, #e8f2f5);
  min-height: 100vh;
}
a { color: var(--sea); text-decoration: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 24px; }
.top {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.brand { font-family: var(--display); font-size: 1.5rem; margin: 0; }
.login-brand { text-align: center; margin-bottom: 14px; }
.logo-login {
  max-width: 220px;
  width: 100%;
  height: auto;
  display: inline-block;
}
.top-brand { display: flex; align-items: center; gap: 14px; }
.logo-header {
  height: 52px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  display: block;
}
.muted { color: var(--muted); font-size: 0.9rem; }
.card {
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 12px; padding: 11px 16px; font-weight: 600;
  cursor: pointer; font: inherit;
}
.btn-primary { background: linear-gradient(135deg, #1785a2, #0c4a63); color: #fff; }
.btn-secondary { background: #fff; border: 1px solid var(--line); color: var(--ink); }
.btn-danger { background: rgba(196,92,42,.12); color: var(--warn); }
.field { margin-bottom: 14px; }
.field label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 0.85rem; }
.field input, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 12px;
  padding: 11px 12px; font: inherit; background: #fff;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.alert {
  padding: 12px 14px; border-radius: 12px; margin-bottom: 14px;
  background: rgba(196,92,42,.1); color: #7a3418;
}
.alert-ok { background: rgba(47,143,107,.12); color: #1f6b4d; }
.nav { display: flex; gap: 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { color: var(--ink); font-size: 0.72rem; text-transform: none; letter-spacing: .02em; font-weight: 600; line-height: 1.25; }
th .muted { display: block; font-weight: 400; text-transform: none; font-size: 0.68rem; }
tfoot td { font-weight: 700; background: rgba(20,112,138,.06); }
.login-page {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
}
.login-card { width: min(420px, 100%); }
.login-card h1 { font-family: var(--display); margin: 0 0 6px; }
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.mod {
  padding: 18px; border-radius: 16px; border: 1px solid var(--line);
  background: #fff; transition: transform .15s ease;
}
.mod:hover { transform: translateY(-2px); }
.mod h3 { margin: 0 0 6px; font-size: 1.05rem; }
.badge {
  display: inline-block; font-size: 0.72rem; padding: 4px 8px; border-radius: 999px;
  background: rgba(20,112,138,.12); color: var(--sea); font-weight: 600;
}
.badge-soon { background: rgba(92,115,128,.12); color: var(--muted); }
@media (max-width: 700px) { .grid2 { grid-template-columns: 1fr; } }
