:root {
  --entry-bg: #edf5f1;
  --entry-paper: #ffffff;
  --entry-ink: #173229;
  --entry-muted: #647f73;
  --entry-primary: #0b8f6b;
  --entry-primary-deep: #0a6e53;
  --entry-secondary: #0f6488;
  --entry-border: #d5e4dd;
  --entry-shadow: 0 14px 26px rgba(16, 64, 48, 0.12);
}

body.alokop-entry-page {
  font-family: "Sora", sans-serif;
  color: var(--entry-ink);
  background:
    radial-gradient(circle at 14% 0%, rgba(11, 143, 107, 0.16), transparent 48%),
    radial-gradient(circle at 92% 20%, rgba(15, 100, 136, 0.14), transparent 42%),
    var(--entry-bg);
}

body.alokop-entry-page .appHeader.entry-header {
  border-bottom: 0;
  box-shadow: 0 10px 22px rgba(12, 67, 50, 0.13);
  background: linear-gradient(130deg, #0a8a67 0%, #0f6488 60%, #146e63 100%);
  color: #f3fbf8;
}

body.alokop-entry-page .appHeader.entry-header .headerButton,
body.alokop-entry-page .appHeader.entry-header .pageTitle {
  color: #f3fbf8;
}

body.alokop-entry-page .appHeader.entry-header .pageTitle {
  font-weight: 600;
}

body.alokop-entry-page #appCapsule.entry-capsule {
  padding-top: 74px;
  padding-bottom: 92px;
}

.entry-shell {
  max-width: 980px;
  margin: 0 auto;
}

.auth-layout {
  display: grid;
  gap: 12px;
}

.auth-hero,
.entry-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 20px 18px;
  color: #eefcf8;
  box-shadow: var(--entry-shadow);
  background: linear-gradient(130deg, #0b8f6b 0%, #0f6488 70%, #0f5446 100%);
}

.auth-hero::before,
.auth-hero::after,
.entry-hero::before,
.entry-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.auth-hero::before,
.entry-hero::before {
  width: 180px;
  height: 180px;
  right: -62px;
  top: -74px;
  background: rgba(255, 255, 255, 0.12);
}

.auth-hero::after,
.entry-hero::after {
  width: 148px;
  height: 148px;
  left: -58px;
  bottom: -82px;
  background: rgba(255, 255, 255, 0.1);
}

.auth-hero-content,
.entry-hero-content {
  position: relative;
  z-index: 1;
}

.hero-kicker {
  display: inline-flex;
  border-radius: 999px;
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 10px;
  background: rgba(0, 0, 0, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.24);
}

.auth-hero h1,
.entry-hero h1 {
  margin: 10px 0 0;
  color: #f8fffd;
  font-size: 25px;
  line-height: 1.24em;
  font-weight: 700;
}

.auth-hero p,
.entry-hero p {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.45em;
  color: rgba(246, 255, 252, 0.88);
}

.hero-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.hero-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(0, 0, 0, 0.15);
  padding: 7px 11px;
  font-size: 12px;
  color: #ecfffa;
}

.form-card,
.tips-card,
.schedule-card,
.summary-card {
  background: var(--entry-paper);
  border: 1px solid var(--entry-border);
  border-radius: 18px;
  box-shadow: 0 10px 22px rgba(16, 64, 48, 0.08);
  padding: 16px;
}

.form-card h2 {
  margin: 0;
  font-size: 19px;
  line-height: 1.3em;
  font-weight: 700;
}

.form-card p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--entry-muted);
}

.entry-form {
  margin-top: 14px;
}

.entry-form-group {
  margin-bottom: 12px;
}

.entry-form-group:last-child {
  margin-bottom: 0;
}

.entry-form-label {
  display: block;
  margin-bottom: 6px;
  color: #365c4d;
  font-size: 12px;
  font-weight: 600;
}

.entry-input-wrap {
  position: relative;
}

.entry-input-wrap ion-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #6b8479;
  font-size: 18px;
}

.entry-input,
.entry-select {
  width: 100%;
  border: 1px solid #c8dbd2;
  border-radius: 12px;
  height: 44px;
  padding: 0 12px;
  font-size: 14px;
  color: #1f4336;
  background: #f7fbf9;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.entry-input.entry-input-icon {
  padding-left: 38px;
}

.entry-input:focus,
.entry-select:focus {
  outline: 0;
  border-color: #7db9a4;
  box-shadow: 0 0 0 3px rgba(11, 143, 107, 0.16);
  background: #ffffff;
}

.entry-helper {
  margin-top: 5px;
  color: #6d897d;
  font-size: 11px;
}

.entry-button-row {
  margin-top: 14px;
}

.btn.entry-button {
  border-radius: 12px;
  border: 0;
  font-weight: 600;
  height: 46px;
  background: linear-gradient(130deg, #0b8f6b 0%, #0f6488 100%);
  box-shadow: 0 10px 20px rgba(15, 93, 69, 0.28);
}

.btn.entry-button:disabled {
  opacity: 0.85;
}

.tips-card h3,
.schedule-card h3,
.summary-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35em;
  font-weight: 700;
}

.tips-card p,
.schedule-card p,
.summary-card p {
  margin: 6px 0 0;
  color: var(--entry-muted);
  font-size: 12px;
}

.tips-list {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.tips-list li {
  margin-bottom: 8px;
  border-radius: 12px;
  border: 1px solid #d4e5dd;
  background: #f7fbf9;
  padding: 10px 11px;
  font-size: 12px;
  line-height: 1.4em;
  color: #365b4d;
}

.tips-list li:last-child {
  margin-bottom: 0;
}

.summary-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 9px;
}

.summary-item {
  border-radius: 12px;
  border: 1px solid #d5e4dd;
  background: linear-gradient(180deg, #ffffff, #f7fbf9);
  padding: 10px;
}

.summary-item .summary-label {
  display: block;
  color: #5f7b70;
  font-size: 11px;
}

.summary-item .summary-value {
  margin-top: 4px;
  display: block;
  color: #0c6f53;
  font-size: 18px;
  line-height: 1.2em;
  font-weight: 700;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.schedule-table-wrap {
  margin-top: 12px;
  overflow-x: auto;
  border: 1px solid #d4e4dd;
  border-radius: 13px;
}

.schedule-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

.schedule-table th,
.schedule-table td {
  border-bottom: 1px solid #e2ece7;
  padding: 10px;
  font-size: 12px;
  text-align: right;
  color: #24493c;
  white-space: nowrap;
}

.schedule-table th {
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 11px;
  text-align: right;
  background: #eef6f2;
  color: #43685b;
}

.schedule-table th:first-child,
.schedule-table td:first-child {
  text-align: center;
}

.schedule-table tbody tr:last-child td {
  border-bottom: 0;
}

.schedule-empty td {
  text-align: center !important;
  color: #6b8579;
}

.riwayat-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.riwayat-controls {
  margin-top: 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.riwayat-refresh-btn {
  border-radius: 12px;
  border-color: #9cc8b8;
  color: #0d6d52;
  font-size: 12px;
  font-weight: 600;
  height: 44px;
}

.riwayat-status {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.riwayat-status.status-menunggu {
  background: #fff0d3;
  color: #8a5a0b;
}

.riwayat-status.status-disetujui {
  background: #d9efe5;
  color: #0c614b;
}

.riwayat-status.status-ditolak {
  background: #f8ddd8;
  color: #952f22;
}

.entry-footer {
  margin-top: 18px;
  text-align: center;
  font-size: 11px;
  color: #768f84;
}

.entry-footer strong {
  color: #48695c;
  font-weight: 600;
}

.is-hidden {
  display: none !important;
}

@media (min-width: 768px) {
  .entry-shell {
    padding: 0 14px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .riwayat-summary {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .riwayat-controls {
    grid-template-columns: 1.2fr 0.8fr auto;
    align-items: center;
  }

  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-grid .grid-col-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 992px) {
  .auth-layout {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}
