/* ========= RESET ========= */

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

:root {
  --bg: #071622;
  --bg-soft: #0b2133;

  --panel: #10283a;
  --panel-soft: #143247;

  --primary: #087f8c;
  --primary-dark: #066b76;
  --primary-light: #0b6fae;

  --accent: #9bd84f;

  --text: #ffffff;
  --muted: #a8bac4;

  --border: rgba(255,255,255,.12);

  --danger: #ff6a82;
  --success: #9bd84f;

  --radius: 20px;
}

body {
  background:
    radial-gradient(circle at top left, rgba(8,127,140,.35), transparent 32%),
    radial-gradient(circle at bottom right, rgba(155,216,79,.12), transparent 30%),
    linear-gradient(180deg, var(--bg), #041018);

  color: var(--text);

  font-family:
    Inter,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  min-height: 100vh;
  padding: 40px;
}

/* ========= BRAND ========= */

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}

.logo-mark {
  width: 58px;
  height: 58px;
  border-radius: 18px;

  background:
    linear-gradient(135deg, var(--primary), var(--primary-light));

  display: grid;
  place-items: center;

  font-weight: 900;
  color: #041018;
  font-size: 20px;
  letter-spacing: -1px;

  box-shadow:
    0 0 0 3px rgba(155,216,79,.25),
    0 16px 40px rgba(0,0,0,.35);
}

.brand h1 {
  font-size: 31px;
  letter-spacing: -1.2px;
  line-height: 1;
}

.brand p {
  margin-top: 6px;
  color: var(--accent);
  font-weight: 600;
}

/* ========= CARD ========= */

.card {
  max-width: 1000px;
  background: rgba(16,40,58,.92);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;

  box-shadow:
    0 24px 70px rgba(0,0,0,.42),
    inset 0 1px 0 rgba(255,255,255,.05);
}

.login-card {
  width: 420px;
  margin: auto;
  margin-top: 10vh;
}

.panel {
  background: var(--panel-soft);
  padding: 20px;
  border-radius: 16px;
  border: 1px solid var(--border);
}

/* ========= LAYOUT ========= */

.container {
  max-width: 1200px;
  margin: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* ========= DASHBOARD TILES ========= */

.tile {
  background:
    linear-gradient(180deg, rgba(20,50,71,.95), rgba(13,33,48,.95));

  padding: 26px;
  border-radius: 20px;
  text-decoration: none;
  color: white;
  transition: .2s;
  border: 1px solid var(--border);
}

.tile:hover {
  transform: translateY(-4px);
  border-color: rgba(155,216,79,.45);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.tile h2 {
  margin-bottom: 8px;
  letter-spacing: -.5px;
}

.tile p {
  color: var(--muted);
}

/* ========= FORM ========= */

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
}

input,
select,
textarea {
  width: 100%;
  padding: 14px;
  background: #06131d;
  border: 1px solid #25465a;
  border-radius: 14px;
  color: white;
  margin-bottom: 20px;
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #7f949f;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(8,127,140,.25);
}

/* ========= BUTTON ========= */

button,
.btn {
  display: inline-block;
  text-decoration: none;

  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;

  font-weight: 800;
  padding: 14px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: .2s;

  box-shadow: 0 10px 24px rgba(8,127,140,.28);
}

button:hover,
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(8,127,140,.38);
}

.btn-secondary {
  background: #20384c;
  color: white;
  box-shadow: none;
}

/* ========= TABLE ========= */

table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  margin-top: 20px;
}

th {
  background: #17364c;
  text-align: left;
  padding: 16px;
  color: var(--accent);
}

td {
  padding: 16px;
  border-bottom: 1px solid #20384c;
}

tr:hover {
  background: rgba(8,127,140,.12);
}

/* ========= ALERT ========= */

.error {
  background: rgba(255,106,130,.13);
  color: #ffd7df;
  border: 1px solid rgba(255,106,130,.35);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 20px;
}

.success {
  background: rgba(155,216,79,.13);
  color: #dfffc2;
  border: 1px solid rgba(155,216,79,.35);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 20px;
}

/* ========= NAV ========= */

.nav {
  display: flex;
  gap: 14px;
  margin-top: 24px;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}

.nav a:hover {
  color: var(--accent);
}