/* ==========================================================
   PPDB ONLINE - SMA NUSANTARA
   base.css - variabel warna, reset, tipografi dasar
   ========================================================== */

:root {
  /* Identitas hijau-emas — selaras dengan halaman beranda & auth */
  --navy-900: #0a3d22;
  --navy-800: #0e6b3a;
  --navy-700: #12804a;
  --blue-600: #0e6b3a;
  --blue-500: #12804a;
  --blue-50: #e6f2ea;
  --pp-gold: #e8b923;
  --pp-gold-light: #f5d65c;
  --pp-gold-tint: #fbf1d6;
  --pp-cream: #fbf7ee;
  --pp-cream-deep: #f2ead6;
  --green-600: #16a34a;
  --green-700: #15803d;
  --amber-500: #f59e0b;
  --amber-50: #fef7e8;
  --red-500: #ef4444;
  --gray-50: #f8f6ef;
  --gray-100: #f0ede2;
  --gray-200: #e4e0d1;
  --gray-400: #9aa4b2;
  --gray-500: #6b7686;
  --gray-700: #3d4757;
  --gray-900: #1a2233;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-card: 0 2px 10px rgba(16, 30, 60, 0.06);
  --shadow-pop: 0 10px 30px rgba(16, 30, 60, 0.12);
  --font-main: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-display: "Fraunces", "Plus Jakarta Sans", serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  color: var(--gray-900);
  background: var(--gray-50);
  -webkit-font-smoothing: antialiased;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

img {
  max-width: 100%;
  display: block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-900);
}

.btn-success {
  background: var(--green-600);
  color: var(--white);
}

.btn-success:hover {
  background: var(--green-700);
}

.btn-block {
  width: 100%;
}

.input-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.input-field input,
.input-field select {
  border: none;
  background: transparent;
  outline: none;
  width: 100%;
  font-size: 14px;
  color: var(--gray-900);
  font-family: inherit;
}

.input-field input::placeholder {
  color: var(--gray-400);
}

.input-field .icon {
  color: var(--gray-400);
  flex-shrink: 0;
  display: flex;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.badge-amber {
  background: var(--amber-50);
  color: #b45309;
}

.badge-blue {
  background: var(--blue-50);
  color: var(--blue-600);
}

.badge-green {
  background: #e9f9ee;
  color: var(--green-700);
}

.badge-red {
  background: #fdecec;
  color: #b91c1c;
}

.badge-gray {
  background: var(--gray-100);
  color: var(--gray-500);
}

.card {
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--gray-100);
}

.alert {
  text-align: left;
  font-size: 12.5px;
  font-weight: 600;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.alert-error {
  background: #fdecec;
  color: #b91c1c;
}

.alert-success {
  background: #e9f9ee;
  color: var(--green-700);
}