/* =========================================================
   Dashboard Skripsi — Prodi Informatika UNCP
   Token system
   Warna   : --hijau (utama), --emas (aksen), --krem (bg), --tinta (teks), --sage (teks sekunder)
   Tipe    : "Fraunces" (display/serif, judul), "Inter" (UI/body)
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600;9..144,700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --hijau-900: #123626;
  --hijau-700: #1B5E3F;
  --hijau-500: #2C7A52;
  --emas-500: #E8B923;
  --emas-600: #C99A12;
  --krem: #FAF6EC;
  --krem-panel: #FFFFFF;
  --tinta: #1F2A22;
  --sage: #6C8B77;
  --garis: #E1DCC9;
  --bahaya: #B3372B;

  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-soft: 0 12px 32px -12px rgba(18, 54, 38, 0.28);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--krem);
  color: var(--tinta);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}

a { color: inherit; }

/* -------------------- Focus & motion baseline -------------------- */
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 3px solid var(--emas-500);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =========================================================
   LOGIN PAGE
   ========================================================= */
.login-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background:
    radial-gradient(circle at 15% 12%, rgba(232, 185, 35, 0.14), transparent 45%),
    radial-gradient(circle at 85% 88%, rgba(27, 94, 63, 0.16), transparent 50%),
    var(--krem);
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--krem-panel);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  border: 1px solid var(--garis);
}

/* Signature element: gerbang kampus — lengkung ganda meniru gapura/gerbang UNCP */
.gate {
  position: relative;
  height: 128px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--hijau-700), var(--hijau-900));
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.gate::before {
  content: "";
  position: absolute;
  top: 22px;
  width: 84px;
  height: 84px;
  border-radius: 50% 50% 0 0;
  background: var(--krem-panel);
}
.gate::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 46px;
  height: 58px;
  border-radius: 23px 23px 0 0;
  background: var(--emas-500);
}
.gate span {
  position: relative;
  z-index: 1;
  color: var(--emas-500);
  font-family: 'Fraunces', serif;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding-bottom: 10px;
}

.gate-logo {
  position: absolute !important;
  top: 22px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  object-fit: contain !important;
  border-radius: 50%;
  z-index: 2;
  padding: 6px;
}

.login-body {
  padding: 32px 30px 34px;
}

.login-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sage);
  font-weight: 600;
  margin-bottom: 6px;
  display: block;
}

.login-title {
  font-size: 24px;
  margin-bottom: 4px;
}

.login-sub {
  color: var(--sage);
  font-size: 14px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-input {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--garis);
  background: var(--krem);
  font-size: 15px;
  font-family: inherit;
  color: var(--tinta);
  transition: border-color 0.15s ease;
}
.field-input:focus {
  border-color: var(--hijau-500);
  outline: none;
}

.btn-primary {
  width: 100%;
  margin-top: 18px;
  padding: 13px 14px;
  border: none;
  border-radius: var(--radius-md);
  background: var(--hijau-700);
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
}
.btn-primary:hover { background: var(--hijau-900); }
.btn-primary:active { transform: translateY(1px); }

.alert {
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  background: #FBEAE7;
  border: 1px solid #EFC3BB;
  color: var(--bahaya);
  font-size: 13.5px;
  line-height: 1.5;
}

.login-foot {
  margin-top: 22px;
  text-align: center;
  font-size: 12px;
  color: var(--sage);
}

/* =========================================================
   DASHBOARD PAGE
   ========================================================= */
.dash-shell {
  min-height: 100vh;
  padding-bottom: 60px;
}

.dash-header {
  background: linear-gradient(135deg, var(--hijau-700), var(--hijau-900));
  color: #fff;
  padding: 34px 24px 46px;
  position: relative;
  overflow: hidden;
}
.dash-header::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(232, 185, 35, 0.14);
}

.dash-header-inner {
  max-width: 980px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.dash-eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--emas-500);
  font-weight: 700;
  display: block;
  margin-bottom: 8px;
}

.dash-title {
  font-size: 30px;
  color: #fff;
}

.dash-sub {
  margin-top: 8px;
  color: rgba(255,255,255,0.78);
  font-size: 14.5px;
  max-width: 460px;
  line-height: 1.5;
}

.logout-link {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  color: #fff;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.logout-link:hover { background: rgba(255,255,255,0.2); }

.dash-grid-wrap {
  max-width: 980px;
  margin: -26px auto 0;
  padding: 0 24px;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.menu-card {
  background: var(--krem-panel);
  border-radius: var(--radius-lg);
  border: 1px solid var(--garis);
  box-shadow: var(--shadow-soft);
  padding: 22px 20px;
  text-decoration: none;
  color: var(--tinta);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.menu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px -14px rgba(18, 54, 38, 0.34);
}

.menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: rgba(27, 94, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hijau-700);
}
.menu-icon svg { width: 24px; height: 24px; }

.menu-card-title {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 16.5px;
  line-height: 1.35;
}

.menu-card-desc {
  font-size: 13px;
  color: var(--sage);
  line-height: 1.5;
  margin-top: -8px;
}

.menu-card-cta {
  margin-top: auto;
  font-size: 13px;
  font-weight: 600;
  color: var(--hijau-700);
  display: flex;
  align-items: center;
  gap: 6px;
}
.menu-card:hover .menu-card-cta { color: var(--emas-600); }

@media (max-width: 520px) {
  .dash-title { font-size: 24px; }
  .dash-header { padding: 28px 18px 40px; }
  .dash-grid-wrap { padding: 0 16px; }
}