/* Gaya gen Z: gradient, glassmorphism, font modern */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Inter", sans-serif;
  background: radial-gradient(circle at top left, #ff9a9e, #fad0c4 30%, #a18cd1 55%, #5ee7df 80%, #b490ff);
  color: #fff;
}

.auth-container {
  width: 100%;
  max-width: 420px;
  padding: 2.75rem 2.5rem 2.5rem;
  border-radius: 24px;
  background: rgba(10, 10, 28, 0.78);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(22px) saturate(180%);
}

.auth-header {
  margin-bottom: 2.25rem;
}

.auth-title {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.auth-title span.badge {
  font-size: 0.7rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(45, 212, 191, 0.18));
  border: 1px solid rgba(125, 211, 252, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.auth-subtitle {
  margin-top: 0.6rem;
  font-size: 0.92rem;
  color: #cbd5f5;
  opacity: 0.9;
}

.form-group {
  margin-bottom: 1.4rem;
}

label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9ca3ff;
}

.input-wrapper {
  position: relative;
}

.input-wrapper input,
.input-wrapper select {
  width: 100%;
  padding: 0.7rem 0.9rem 0.7rem 2.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  background: rgba(15, 23, 42, 0.95);
  color: #f9fafb;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.input-wrapper select {
  padding-left: 0.9rem;
  appearance: none;
}

.input-wrapper input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.input-wrapper input:focus,
.input-wrapper select:focus {
  border-color: #818cf8;
  box-shadow: 0 0 0 1px rgba(129, 140, 248, 0.8);
}

.input-icon {
  position: absolute;
  inset-inline-start: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.98rem;
  opacity: 0.7;
}

.btn-primary {
  position: relative;
  width: 100%;
  border: none;
  border-radius: 999px;
  padding: 0.75rem 1rem;
  margin-top: 0.4rem;
  background: linear-gradient(135deg, #6366f1, #ec4899, #22c55e);
  background-size: 180% 180%;
  color: #fefefe;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  box-shadow:
    0 16px 35px rgba(129, 140, 248, 0.7),
    0 0 0 1px rgba(248, 250, 252, 0.05);
  transition: all 0.18s ease-out;
}

.btn-primary:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow:
    0 22px 45px rgba(129, 140, 248, 0.9),
    0 0 35px rgba(244, 114, 182, 0.85);
  background-position: 100% 0;
}

.btn-primary:active {
  transform: translateY(0) scale(0.99);
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.9);
}

.meta-text {
  margin-top: 1.4rem;
  font-size: 0.78rem;
  color: #cbd5f5;
  opacity: 0.8;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.meta-text a {
  color: #a5b4fc;
  text-decoration: none;
  font-weight: 600;
}

.meta-text a:hover {
  text-decoration: underline;
}

.alert {
  border-radius: 12px;
  padding: 0.65rem 0.8rem;
  font-size: 0.8rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.alert-error {
  background: rgba(248, 113, 113, 0.14);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.7);
}

.alert-success {
  background: rgba(34, 197, 94, 0.14);
  color: #bbf7d0;
  border: 1px solid rgba(34, 197, 94, 0.7);
}

.alert strong {
  font-weight: 700;
}

/* Dashboard */
.dashboard {
  max-width: 960px;
  width: 100%;
  padding: 2.5rem 2rem 2rem;
  border-radius: 24px;
  background: rgba(10, 10, 28, 0.86);
  box-shadow:
    0 24px 60px rgba(15, 23, 42, 0.9),
    0 0 0 1px rgba(148, 163, 184, 0.25);
  backdrop-filter: blur(22px) saturate(180%);
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.dashboard-title {
  font-size: 1.7rem;
  font-weight: 800;
}

.dashboard-subtitle {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #cbd5f5;
  opacity: 0.9;
}

.pill {
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.95);
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: transparent;
  color: #e5e7eb;
  padding: 0.45rem 0.9rem;
  font-size: 0.8rem;
  cursor: pointer;
  margin-left: 0.5rem;
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 0.9);
}

.grid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 840px) {
  .grid-2 {
    grid-template-columns: 1.3fr 1fr;
  }
}

.card {
  border-radius: 18px;
  padding: 1.3rem 1.25rem;
  background: radial-gradient(circle at top left, rgba(79, 70, 229, 0.4), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(129, 140, 248, 0.65);
}

.card-muted {
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.3), rgba(15, 23, 42, 0.95));
  border-color: rgba(56, 189, 248, 0.7);
}

.card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  color: #e5e7eb;
}

.card p {
  font-size: 0.88rem;
  color: #e5e7eb;
  opacity: 0.9;
}

.table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.75rem;
  font-size: 0.84rem;
}

.table th,
.table td {
  padding: 0.5rem 0.55rem;
  text-align: left;
}

.table th {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: #9ca3ff;
  border-bottom: 1px solid rgba(148, 163, 184, 0.7);
}

.table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.85);
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  border: 1px solid rgba(251, 191, 36, 0.8);
  background: rgba(252, 211, 77, 0.12);
  color: #fef9c3;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
}

/* ===== Responsive tweaks untuk mobile ===== */
@media (max-width: 640px) {
  body.login-page {
    align-items: center;
    justify-content: center;
    padding: 1.8rem 0.9rem;
  }

  .login-page .auth-container {
    max-width: 100%;
    padding: 1.9rem 1.4rem 1.6rem;
    border-radius: 18px;
    margin-inline: auto;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .auth-subtitle {
    font-size: 0.85rem;
  }

  .dashboard {
    padding: 1.8rem 1.2rem 1.4rem;
    border-radius: 18px;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .dashboard-title {
    font-size: 1.4rem;
  }

  .dashboard-header > div:last-child {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .meta-text {
    flex-direction: column;
    align-items: flex-start;
  }

  .table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
  }

  .btn-ghost {
    margin-top: 0.3rem;
  }

  /* Biar form hapus di tabel tidak terlalu mepet */
  .table button.btn-ghost {
    padding-inline: 0.65rem;
    font-size: 0.75rem;
  }

  .card {
    padding: 1.05rem 1rem;
  }
}


