:root {
  --ink: #102235;
  --blue: #0b6df3;
  --mist: #f3f7fb;
  --line: #dfe7ef;
  --muted: #627488;
  --green: #0f9d6b;
  --amber: #c67800;
  --red: #c43838;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font:
    15px/1.55 Poppins,
    Arial,
    sans-serif;
}
.topbar {
  min-height: 68px;
  background: #071a2c;
  color: white;
  padding: 0 max(24px, calc((100% - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: 0.8px;
}
.brand span,
.eyebrow {
  color: #42a5ff;
}
.topbar nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.topbar nav a {
  color: #d5e4f5;
  text-decoration: none;
}
.shell {
  width: min(1180px, calc(100% - 40px));
  margin: 42px auto;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  margin-bottom: 24px;
}
.page-heading h1 {
  margin: 0;
  font-size: 30px;
}
.eyebrow {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.3px;
}
.muted {
  margin: 4px 0;
  color: var(--muted);
}
.actions,
.document-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.button {
  border: 0;
  border-radius: 9px;
  padding: 11px 16px;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.button.primary {
  background: var(--blue);
  color: white;
}
.button.secondary {
  background: #e7f1ff;
  color: #0754bf;
}
.button.ghost {
  background: white;
  color: var(--ink);
  border: 1px solid var(--line);
}
.button.small {
  padding: 7px 10px;
  font-size: 13px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.metrics article,
.panel,
.print-document {
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(27, 54, 82, 0.04);
}
.metrics span {
  color: var(--muted);
  display: block;
}
.metrics strong {
  font-size: 24px;
}
.panel {
  margin-bottom: 20px;
}
.panel h2 {
  margin: 0;
  font-size: 18px;
}
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.panel-title a {
  color: var(--blue);
  text-decoration: none;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
th {
  font-size: 12px;
  letter-spacing: 0.4px;
  color: var(--muted);
  text-transform: uppercase;
}
td a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}
.empty {
  text-align: center;
  color: var(--muted);
}
.status {
  display: inline-flex;
  border-radius: 20px;
  padding: 3px 9px;
  font-size: 12px;
  font-weight: 700;
  background: #edf1f5;
  color: #526373;
}
.status.draft {
  background: #eef1f5;
}
.status.sent,
.status.processing {
  background: #e6f0ff;
  color: #0754bf;
}
.status.accepted,
.status.paid {
  background: #e3f8ef;
  color: var(--green);
}
.status.cancelled,
.status.overdue {
  background: #fff0f0;
  color: var(--red);
}
.document-form {
  display: grid;
  gap: 0;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.form-grid .full {
  grid-column: 1/-1;
}
label {
  display: grid;
  gap: 6px;
  color: #40566c;
  font-weight: 600;
}
input,
textarea,
select {
  border: 1px solid #cbd8e5;
  border-radius: 8px;
  padding: 10px 11px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  width: 100%;
}
textarea {
  resize: vertical;
}
.document-form table input {
  min-width: 110px;
}
.document-form table td:first-child input {
  min-width: 280px;
}
.line-total {
  font-weight: 700;
}
.remove-item {
  border: 0;
  color: var(--red);
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.totals {
  margin: 20px 0 0 auto;
  width: min(100%, 430px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.totals strong {
  grid-column: 1/-1;
  text-align: right;
  font-size: 18px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin: 4px 0 30px;
}
.login-page {
  display: grid;
  min-height: 100vh;
  place-items: center;
  background: radial-gradient(circle at top right, #125bd0, #061522 65%);
}
.login-card {
  width: min(430px, calc(100% - 40px));
  padding: 34px;
  background: white;
  border-radius: 18px;
}
.login-card h1 {
  margin: 0 0 5px;
}
.stack {
  display: grid;
  gap: 16px;
  margin: 24px 0;
}
.back-link {
  color: var(--blue);
  text-decoration: none;
}
.alert {
  border-radius: 9px;
  padding: 11px 14px;
  margin: 15px 0;
}
.alert.error {
  background: #fff0f0;
  color: #a92525;
}
.document-actions {
  justify-content: flex-end;
  margin-bottom: 16px;
}
.print-document {
  padding: 46px;
  box-shadow: none;
}
.document-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  border-bottom: 2px solid var(--blue);
  padding-bottom: 24px;
}
.document-head h1 {
  margin: 0;
  font-size: 32px;
}
.document-head p {
  margin: 3px 0;
}
.issuer {
  display: grid;
  text-align: right;
  color: var(--muted);
}
.document-meta {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  margin: 30px 0;
}
.document-meta > div {
  display: grid;
  align-content: start;
  gap: 3px;
}
.document-meta p {
  margin: 4px 0;
  color: var(--muted);
}
.print-table th {
  background: #eef5ff;
  color: #234;
}
.print-table td {
  white-space: normal;
}
.document-summary {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 36px;
  margin-top: 28px;
}
.notes h3 {
  font-size: 14px;
  margin: 0 0 4px;
}
.notes p {
  color: var(--muted);
  margin: 0 0 18px;
}
.document-summary dl {
  margin: 0;
}
.document-summary dl div {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.document-summary dt {
  color: var(--muted);
}
.document-summary dd {
  margin: 0;
  font-weight: 700;
}
.document-summary .grand {
  font-size: 19px;
  border-bottom: 0;
}
.status-form {
  display: flex;
  align-items: end;
  gap: 12px;
  max-width: 420px;
}
.status-form label {
  flex: 1;
}
@media (max-width: 760px) {
  .topbar {
    padding: 16px 20px;
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar nav {
    gap: 14px;
    font-size: 14px;
  }
  .shell {
    width: min(100% - 28px, 1180px);
    margin: 26px auto;
  }
  .page-heading,
  .document-head,
  .document-meta {
    align-items: flex-start;
    flex-direction: column;
  }
  .metrics,
  .form-grid,
  .document-summary {
    grid-template-columns: 1fr;
  }
  .actions {
    width: 100%;
  }
  .actions .button {
    flex: 1;
  }
  .print-document {
    padding: 24px;
  }
  .issuer {
    text-align: left;
  }
  .no-print {
    display: flex;
  }
}
@media print {
  body {
    background: white;
  }
  .no-print {
    display: none !important;
  }
  .shell {
    width: 100%;
    margin: 0;
  }
  .print-document {
    border: 0;
    padding: 0;
  }
  .document-head {
    margin-top: 0;
  }
}

/* =========================================
   KENZITECH ADMIN LOGIN
========================================= */

.login-page {
  position: relative;
  width: 100%;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  font-family: "Poppins", Arial, sans-serif;
  color: #ffffff;
  background: #06131f;
}

/* =========================================
   LOGIN BACKGROUND
========================================= */

.login-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(4, 16, 27, 0.96) 0%,
      rgba(5, 24, 41, 0.9) 42%,
      rgba(3, 32, 58, 0.82) 100%
    ),
    linear-gradient(rgba(5, 18, 31, 0.72), rgba(5, 18, 31, 0.9)),
    url("../../images/server-room.jpeg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* CYAN AMBIENT GLOW */

.login-background::before {
  content: "";
  position: absolute;
  width: 650px;
  height: 650px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(22, 200, 255, 0.1),
    rgba(22, 200, 255, 0.025) 45%,
    transparent 70%
  );
  pointer-events: none;
}

/* =========================================
   LOGIN HEADER
========================================= */

.login-header {
  position: relative;
  z-index: 10;
  width: 100%;
  background: rgba(5, 18, 29, 0.74);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
}

.login-header-inner {
  width: min(1380px, calc(100% - 50px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

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

.login-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  text-decoration: none;
}

.login-brand img {
  width: 48px;
  height: auto;
  display: block;
}

.login-brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.login-brand-text strong {
  font-size: 27px;
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: 0.8px;
  color: #16c8ff;
}

.login-brand-text strong span {
  color: #ffffff;
}

.login-brand-text small {
  margin-top: 4px;
  padding-left: 2px;
  font-size: 8px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 5px;
  color: rgba(255, 255, 255, 0.68);
}

/* =========================================
   BACK TO INFRA LINK
========================================= */

.login-home-link {
  color: rgba(255, 255, 255, 0.75);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: 0.25s ease;
}

.login-home-link:hover {
  color: #16c8ff;
}

/* =========================================
   LOGIN WRAPPER
========================================= */

.login-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px 20px 55px;
}

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

.login-page .login-card {
  position: relative;
  width: min(440px, 100%);
  padding: 36px 38px 30px;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(
    160deg,
    rgba(13, 34, 51, 0.94),
    rgba(5, 19, 31, 0.97)
  );
  border: 1px solid rgba(22, 200, 255, 0.19);
  border-radius: 18px;
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.36),
    0 0 45px rgba(22, 200, 255, 0.07);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

/* TOP CYAN ACCENT */

.login-page .login-card::before {
  content: "";

  position: absolute;
  top: 0;
  left: 50%;
  width: 45%;
  height: 2px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, #16c8ff, transparent);
  box-shadow: 0 0 15px rgba(22, 200, 255, 0.75);
}

/* SUBTLE CARD LIGHT */

.login-page .login-card::after {
  content: "";
  position: absolute;
  top: -140px;
  right: -120px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(22, 200, 255, 0.08),
    transparent 68%
  );

  pointer-events: none;
}

/* =========================================
   ADMIN BADGE
========================================= */

.login-admin-badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  margin-bottom: 17px;
  padding: 5px 10px;
  border: 1px solid rgba(22, 200, 255, 0.22);
  border-radius: 999px;
  background: rgba(22, 200, 255, 0.07);
  color: #16c8ff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  margin-left: auto;
  margin-right: auto;
}

/* =========================================
   LOGIN HEADER CONTENT
========================================= */

.login-card-header {
  position: relative;
  z-index: 1;
  text-align: center;
}

.login-eyebrow {
  margin: 0 0 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-align: center;
}

.login-eyebrow-kenzi {
  color: #ffffff;
}

.login-eyebrow-tech {
  color: #16c8ff;
}

.login-eyebrow-infra {
  margin-left: 0;
  color: #ffffff;
}

.login-page .login-card h1 {
  margin: 0;
  color: #ffffff;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.6px;
}

.login-description {
  max-width: 340px;
  margin: 10px auto 0;
  color: rgba(220, 232, 241, 0.68);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
}

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

.login-form {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 17px;
  margin-top: 27px;
}

.login-field {
  display: grid;
  gap: 7px;
}

.login-field label {
  display: block;
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 600;
}

/* =========================================
   LOGIN INPUT
========================================= */

.login-input-wrap {
  position: relative;
  width: 100%;
}

.login-input-icon {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  width: 25px;
  height: 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 7px;
  background: rgba(22, 200, 255, 0.08);
  color: #16c8ff;
  font-size: 10px;
  font-weight: 800;
  pointer-events: none;
}

.login-page .login-input-wrap input {
  width: 100%;
  height: 50px;
  padding: 0 15px 0 50px;
  outline: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  transition:
    border-color 0.25s ease,
    background 0.25s ease,
    box-shadow 0.25s ease;
}

.login-page .login-input-wrap input::placeholder {
  color: rgba(255, 255, 255, 0.28);
}

.login-page .login-input-wrap input:hover {
  border-color: rgba(22, 200, 255, 0.28);
}

.login-page .login-input-wrap input:focus {
  border-color: #16c8ff;
  background: rgba(22, 200, 255, 0.055);
  box-shadow:
    0 0 0 3px rgba(22, 200, 255, 0.08),
    0 0 22px rgba(22, 200, 255, 0.08);
}

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

.login-submit {
  width: 100%;
  min-height: 50px;
  margin-top: 4px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
  background: linear-gradient(90deg, #129de8, #16c8ff);
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(22, 200, 255, 0.18);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.login-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow: 0 14px 35px rgba(22, 200, 255, 0.28);
}

.login-submit:active {
  transform: translateY(0);
}

.login-submit-arrow {
  font-size: 18px;
  line-height: 1;
}

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

.login-page .login-alert {
  position: relative;
  z-index: 1;
  margin: 20px 0 0;
  padding: 11px 13px;
  border: 1px solid rgba(255, 92, 92, 0.23);
  border-radius: 9px;
  background: rgba(255, 65, 65, 0.08);
  color: #ffaaaa;
  font-size: 12px;
  line-height: 1.5;
}

/* =========================================
   LOGIN CARD FOOTER
========================================= */

.login-card-footer {
  position: relative;
  z-index: 1;
  margin-top: 23px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.38);
  font-size: 10px;
  text-align: center;
}

.login-secure-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #24e594;
  box-shadow: 0 0 8px rgba(36, 229, 148, 0.7);
}

/* =========================================
   LOGIN PAGE FOOTER
========================================= */

.login-footer {
  position: relative;
  z-index: 2;
  min-height: 44px;
  padding: 10px 20px 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 10px;
}

.login-footer-divider {
  color: #16c8ff;
}

.kenziverse-link {
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(
    90deg,
    #44c7ff 0%,
    #6ab8ff 35%,
    #9d8cff 70%,
    #d889ff 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  transition:
    filter 0.3s ease,
    text-shadow 0.3s ease;
}

.kenziverse-link:hover {
  filter: brightness(1.2);
  text-shadow: 0 0 14px rgba(125, 145, 255, 0.35);
}

/* =========================================
   LOGIN PAGE INTRO ANIMATION
========================================= */

/* Background softly appears */
.login-background {
  animation: loginBackgroundIn 0.9s ease both;
}

/* Header slides gently from top */
.login-header {
  animation: loginHeaderIn 0.65s ease both;
}

/* Main login card */
.login-page .login-card {
  animation: loginCardIn 0.75s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

/* Footer enters last */
.login-footer {
  animation: loginFooterIn 0.65s ease 0.3s both;
}

/* =========================================
   INTRO KEYFRAMES
========================================= */

@keyframes loginBackgroundIn {
  from {
    opacity: 0;
    transform: scale(1.015);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes loginHeaderIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.975);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes loginFooterIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================
   ACCESSIBILITY
   Disable motion when user requests it
========================================= */

@media (prefers-reduced-motion: reduce) {
  .login-background,
  .login-header,
  .login-page .login-card,
  .login-footer {
    animation: none;
  }
}

/* =========================================
   LOGIN MOBILE
========================================= */

@media (max-width: 600px) {
  .login-header-inner {
    width: calc(100% - 30px);
    min-height: 64px;
  }

  .login-brand img {
    width: 38px;
  }

  .login-brand-text strong {
    font-size: 21px;
  }

  .login-brand-text small {
    margin-top: 3px;
    font-size: 6px;
    letter-spacing: 4px;
  }

  .login-home-link {
    display: none;
  }

  .login-wrapper {
    padding: 28px 16px 32px;
  }

  .login-page .login-card {
    width: 100%;
    padding: 28px 22px 24px;
    border-radius: 15px;
  }

  .login-admin-badge {
    margin-bottom: 14px;
  }

  .login-page .login-card h1 {
    font-size: 27px;
  }

  .login-description {
    font-size: 12px;
    line-height: 1.6;
  }

  .login-form {
    gap: 15px;
    margin-top: 23px;
  }

  .login-page .login-input-wrap input {
    height: 48px;
  }

  .login-submit {
    min-height: 48px;
  }

  .login-card-footer {
    margin-top: 20px;
    padding-top: 16px;
  }

  .login-footer {
    padding-bottom: 12px;
    flex-wrap: wrap;
  }
}

/* =========================================
   APP / TWA LOGIN NAVIGATION
========================================= */

@media (max-width: 700px) {
  .login-page.app-mode .login-header-inner {
    justify-content: space-between;
  }

  .login-page.app-mode .login-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 8px 11px;
    color: #dceaf3;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    background: rgba(22, 200, 255, 0.08);
    border: 1px solid rgba(22, 200, 255, 0.18);
    border-radius: 11px;
    transition:
      color 0.25s ease,
      background 0.25s ease,
      transform 0.25s ease;
  }

  .login-page.app-mode .login-home-link i {
    color: #20ddff;
    font-size: 12px;
  }

  .login-page.app-mode .login-home-link:active {
    transform: scale(0.95);
    background: rgba(22, 200, 255, 0.14);
  }
}

@media (max-width: 390px) {
  .login-page.app-mode .login-home-link span {
    display: none;
  }

  .login-page.app-mode .login-home-link {
    width: 38px;
    padding: 0;
  }
}

/* =========================================
   COMPACT APK / TWA LOGIN
   Dibuat muat satu layar bersama footer
========================================= */

@media screen and (max-width: 700px) {
  .login-page.app-mode {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .login-page.app-mode .login-header {
    flex: 0 0 58px;
  }

  .login-page.app-mode .login-header-inner {
    width: calc(100% - 30px);
    min-height: 58px;
  }

  .login-page.app-mode .login-brand {
    gap: 8px;
  }

  .login-page.app-mode .login-brand img {
    width: 34px;
  }

  .login-page.app-mode .login-brand-text strong {
    font-size: 19px;
  }

  .login-page.app-mode .login-brand-text small {
    margin-top: 2px;
    font-size: 5px;
    letter-spacing: 3.5px;
  }

  .login-page.app-mode .login-home-link {
    min-height: 36px;
    padding: 7px 10px;
    border-radius: 10px;
  }

  .login-page.app-mode .login-wrapper {
    min-height: 0;
    flex: 1 1 auto;
    padding: 12px 16px;
  }

  .login-page.app-mode .login-card {
    width: min(420px, 100%);
    padding: 20px 22px 18px;
    border-radius: 15px;
  }

  .login-page.app-mode .login-admin-badge {
    min-height: 22px;
    margin-bottom: 9px;
    padding: 4px 9px;
    font-size: 8px;
  }

  .login-page.app-mode .login-eyebrow {
    margin-bottom: 3px;
    font-size: 10px;
  }

  .login-page.app-mode .login-card h1 {
    font-size: 25px;
    line-height: 1.1;
  }

  .login-page.app-mode .login-description {
    max-width: 320px;
    margin-top: 6px;
    font-size: 11px;
    line-height: 1.45;
  }

  .login-page.app-mode .login-alert {
    margin-top: 12px;
    padding: 8px 10px;
    font-size: 10px;
    line-height: 1.4;
  }

  .login-page.app-mode .login-form {
    gap: 12px;
    margin-top: 17px;
  }

  .login-page.app-mode .login-field {
    gap: 5px;
  }

  .login-page.app-mode .login-field label {
    font-size: 11px;
  }

  .login-page.app-mode .login-input-icon {
    left: 12px;
    width: 24px;
    height: 24px;
  }

  .login-page.app-mode .login-input-wrap input {
    height: 44px;
    padding-right: 13px;
    padding-left: 46px;
    font-size: 12px;
  }

  .login-page.app-mode .login-submit {
    min-height: 44px;
    margin-top: 2px;
    font-size: 12px;
  }

  .login-page.app-mode .login-card-footer {
    margin-top: 15px;
    padding-top: 12px;
    font-size: 9px;
  }

  .login-page.app-mode .login-footer {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 5px 15px 8px;
    font-size: 8px;
    line-height: 1.3;
  }
}

/*
 * Tetap izinkan scroll pada layar sangat pendek
 * atau saat keyboard Android sedang terbuka.
 */
@media screen and (max-width: 700px) and (max-height: 620px) {
  .login-page.app-mode {
    height: auto;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .login-page.app-mode .login-wrapper {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}
