/* Halaman masuk (2 kartu), instalasi, dan tautan tidak tersedia */
:root {
  --ink: #0E3B43; --ink-2: #0A2C32; --action: #13707A; --action-hover: #0E5C65; --paper: #E7EDEB; --surface: #fff;
  --line: #D3DDDA; --text: #15282B; --muted: #5C7073; --manila: #E8B931; --manila-2: #F4CB4A; --manila-deep: #9A7410;
  --danger: #B9402B; --ok: #2B7A4B;
  --font: "Figtree", system-ui, sans-serif; --display: "Archivo", "Figtree", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body.auth-page { margin: 0; min-height: 100vh; font: 15px/1.5 var(--font); color: var(--text); background: var(--paper);
  background-image: linear-gradient(rgba(14,59,67,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(14,59,67,.045) 1px, transparent 1px);
  background-size: 28px 28px; }
a { color: var(--action); }
:focus-visible { outline: 3px solid var(--manila); outline-offset: 2px; }
h1, h2 { font-family: var(--display); font-stretch: 92%; color: var(--ink); line-height: 1.15; margin: 0 0 .4em; }
.muted { color: var(--muted); }
.center { text-align: center; }

/* ---- Halaman masuk: layar terbagi penuh (panel kiri + kolom kanan berisi 2 kartu) ---- */
body.auth-page:has(.split) { background: var(--paper); }
.split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 54fr) minmax(0, 46fr); }

.split-left { position: relative; overflow: hidden; color: #D5E5E2; display: flex; align-items: center;
  background-color: var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    radial-gradient(ellipse at 100% 0%, rgba(232,185,49,.18), transparent 55%), linear-gradient(160deg, #0E3B43 0%, #0B3036 60%, #134C55 100%);
  background-size: 40px 40px, 40px 40px, 100% 100%, 100% 100%; }
.left-inner { position: relative; z-index: 1; width: 100%; max-width: 760px; padding: 64px clamp(32px, 5.5vw, 96px); }
.auth-brand { display: flex; align-items: center; gap: 16px; color: #fff; margin-bottom: 44px; }
.brand-tile { width: 64px; height: 64px; border-radius: 16px; background: #fff; display: grid; place-items: center; flex: none; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.brand-tile img { width: 46px; height: 46px; object-fit: contain; }
.auth-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.2; }
.auth-brand strong { font-family: var(--display); font-weight: 800; font-size: 1.45rem; letter-spacing: .01em; }
.auth-brand small { font-size: .92rem; opacity: .8; }
.split-left h1 { color: #fff; font-size: clamp(2rem, 3vw, 2.75rem); font-weight: 800; font-stretch: 92%; max-width: 18ch; margin: 0 0 16px; }
.auth-lead { max-width: 50ch; color: #BCD3CF; font-size: 1.03rem; margin: 0 0 30px; }
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 640px; }
.tiles li { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 14px 14px 16px; display: flex; flex-direction: column; gap: 3px; backdrop-filter: blur(2px); }
.tiles i { width: 32px; height: 32px; border-radius: 9px; background: rgba(255,255,255,.12); display: grid; place-items: center; color: var(--manila); font-size: 1rem; margin-bottom: 10px; }
.tiles strong { color: #fff; font-size: .92rem; overflow-wrap: anywhere; }
.tiles span { font-size: .78rem; color: #A9C3C0; line-height: 1.35; }
.announce { margin: 26px 0 0; max-width: 600px; font-size: .88rem; color: #C6DAD7; display: flex; gap: 10px; align-items: flex-start; }
.announce i { color: var(--manila); margin-top: 2px; }

/* Dekorasi: tumpukan map arsip menyembul dari pojok kanan bawah */
.deco { position: absolute; right: -70px; bottom: -40px; width: 400px; height: 210px; transform: rotate(-8deg); pointer-events: none; }
.deco .tab { position: absolute; left: 0; right: 0; height: 150px; border-radius: 8px 18px 18px 18px; box-shadow: 0 -10px 30px -12px rgba(0,0,0,.35); }
.deco .tab span { position: absolute; top: -26px; height: 30px; padding: 5px 16px 0; border-radius: 10px 10px 0 0; font-weight: 700; font-size: .82rem; color: var(--ink-2); white-space: nowrap; }
.deco .t1 { top: 0; background: #C99A1C; } .deco .t1 span { left: 0; background: #C99A1C; }
.deco .t2 { top: 30px; background: #DBAA25; } .deco .t2 span { left: 34%; background: #DBAA25; }
.deco .t3 { top: 60px; background: var(--manila-2); } .deco .t3 span { right: 70px; background: var(--manila-2); }
.deco .t3::after { content: ""; position: absolute; left: 24px; right: 45%; top: 34px; height: 8px; border-radius: 4px; background: rgba(14,59,67,.35); box-shadow: 0 18px 0 rgba(14,59,67,.2), 0 36px 0 rgba(14,59,67,.12); }
@media (prefers-reduced-motion: no-preference) {
  .deco { animation: decoIn .8s cubic-bezier(.2,.8,.2,1) both; }
  @keyframes decoIn { from { transform: rotate(-8deg) translateY(60px); opacity: 0; } }
}

.split-right { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.right-inner { width: 100%; max-width: 440px; display: flex; flex-direction: column; gap: 16px; }
.login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px 30px; box-shadow: 0 24px 48px -30px rgba(14,59,67,.35); }
.login-card h2 { font-size: 1.65rem; font-weight: 800; text-align: center; margin: 0; }
.login-card .sub { text-align: center; color: var(--muted); margin: 6px 0 26px; }
.form { display: flex; flex-direction: column; gap: 16px; }
.form label { display: flex; flex-direction: column; gap: 7px; font-weight: 600; font-size: .88rem; color: var(--ink); }
.form label.check { flex-direction: row; align-items: center; font-weight: 500; gap: 8px; }
input, select { font: 400 1rem var(--font); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 11px 14px; width: 100%; background: #fff; min-height: 48px; }
input:focus, select:focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px rgba(19,112,122,.16); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 48px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; width: 38px; height: 38px; cursor: pointer; color: var(--muted); border-radius: 8px; }
.pw-toggle:hover { background: var(--paper); }
.otp-input { font-family: var(--display); font-size: 1.6rem; letter-spacing: .4em; text-align: center; font-weight: 700; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font: 700 .95rem var(--font); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--paper); }
.btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--ink-2); }
.btn-primary:disabled { opacity: .7; }
.btn-block { width: 100%; height: 50px; margin-top: 4px; font-size: 1rem; }
.alert { padding: 11px 14px; border-radius: 10px; margin-bottom: 16px; font-size: .9rem; border-left: 4px solid; }
.alert-danger { background: #FBE9E5; border-color: var(--danger); }
.alert-info { background: #E3F1F2; border-color: var(--action); }
.alert-success { background: #E4F3EA; border-color: var(--ok); }
.help { text-align: center; color: var(--muted); font-size: .82rem; margin: 18px 0 0; }

.link-card { border: 1.5px dashed #B9C8C4; border-radius: 18px; padding: 18px; background: rgba(255,255,255,.55); }
.link-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.link-ico { width: 38px; height: 38px; border-radius: 10px; background: #E3EBE9; color: var(--ink); display: grid; place-items: center; font-size: 1.25rem; flex: none; }
.link-head strong { display: block; color: var(--ink); font-size: .95rem; }
.link-head span { color: var(--muted); font-size: .84rem; }
.link-row { display: flex; gap: 8px; }
.link-row input { min-height: 46px; font-size: .9rem; }
.link-row .btn { height: 46px; }
.copy { text-align: center; color: var(--muted); font-size: .8rem; margin: 6px 0 0; }

/* Instalasi & halaman sederhana */
.install-wrap { min-height: 100vh; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; }
.install-card { background: #fff; border-radius: 20px; padding: 32px; width: 100%; max-width: 760px; box-shadow: 0 20px 50px -24px rgba(14,59,67,.35); }
.install-card.narrow { max-width: 420px; }
.install-card.center { text-align: center; max-width: 480px; }
.install-head { display: flex; gap: 14px; align-items: center; margin-bottom: 20px; }
.install-head h1 { margin: 0; font-size: 1.5rem; }
.install-head p { margin: 0; color: var(--muted); }
.install-card h2 { font-size: 1.1rem; margin-top: 22px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checks { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; font-size: .9rem; }
.checks .ok i { color: var(--ok); } .checks .bad i { color: var(--danger); } .checks .bad { color: var(--danger); font-weight: 600; }
.keybox { background: var(--ink-2); color: var(--manila); padding: 12px; border-radius: 8px; word-break: break-all; white-space: pre-wrap; font-size: .9rem; }
.table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-bottom: 12px; }
.table th, .table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); }
code { background: #EEF2F1; padding: 1px 5px; border-radius: 4px; }

@media (max-height: 860px) and (min-width: 901px) {
  .deco { display: none; }
  .auth-brand { margin-bottom: 30px; }
  .login-card { padding: 28px 30px 24px; }
  .login-card .sub { margin-bottom: 20px; }
  .split-right { padding: 28px 32px; }
}
@media (max-width: 1100px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 420px; }
}
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split-left { align-items: flex-start; }
  .left-inner { padding: 28px 22px 30px; }
  .auth-brand { margin-bottom: 20px; }
  .brand-tile { width: 52px; height: 52px; border-radius: 14px; }
  .brand-tile img { width: 36px; height: 36px; }
  .split-left h1 { font-size: 1.6rem; margin-bottom: 8px; }
  .auth-lead { font-size: .94rem; margin: 0; }
  .tiles, .announce, .deco { display: none; }
  .split-right { padding: 20px 14px 28px; align-items: flex-start; }
  .login-card { padding: 28px 22px 24px; }
  .grid2, .checks { grid-template-columns: 1fr; }
}
