/* Creava login concept — shared shell for Hub & Sekretaris.
   Fonts are self-hosted (CSP-safe for Hub: style-src 'self'; font-src falls to default-src 'self'). */

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("fonts/plus-jakarta-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f4f6fb;
  --surface: #ffffff;
  --ok: #157f4b;
  --bad: #b42318;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 24px 48px -20px rgba(15, 23, 42, .18);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --acc: #2f5bea;
  --acc-deep: #1e3fc7;
  --acc-soft: #eef2ff;
  --acc-ink: #1634a0;
  --panel-a: #2f5bea;
  --panel-b: #1a2a8a;
  --panel-c: #0d1b5c;
}

.theme-hub {
  --acc: #2f5bea;
  --acc-deep: #1e3fc7;
  --acc-soft: #eef2ff;
  --acc-ink: #1634a0;
  --panel-a: #4d74f0;
  --panel-b: #2f5bea;
  --panel-c: #1729a3;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--acc); text-decoration: none; }
a:hover { color: var(--acc-deep); text-decoration: underline; }

.shell {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(320px, 44%) 1fr;
}

/* —— Brand panel —— */
.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: 2.2rem 2.4rem 1.8rem;
  color: #fff;
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(255,255,255,.12), transparent 55%),
    radial-gradient(ellipse 70% 50% at 100% 0%, rgba(255,255,255,.16), transparent 50%),
    linear-gradient(155deg, var(--panel-a) 0%, var(--panel-b) 48%, var(--panel-c) 100%);
  overflow: hidden;
}
.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 10%, transparent 70%);
  pointer-events: none;
}
.brand-panel > * { position: relative; z-index: 1; }

.brand-lockup {
  display: flex;
  align-items: center;
  gap: .85rem;
}
.mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #fff;
  color: var(--acc);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -.04em;
  box-shadow: 0 8px 20px rgba(0,0,0,.15);
  flex-shrink: 0;
}
.word {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -.03em;
  line-height: 1.15;
}
.word small {
  display: block;
  font-weight: 500;
  font-size: .72rem;
  letter-spacing: .02em;
  opacity: .8;
  margin-top: .15rem;
}

.brand-copy { max-width: 28rem; }
.eyebrow {
  margin: 0 0 .7rem;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .75;
}
.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -.03em;
  line-height: 1.25;
}
.points {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: .55rem;
}
.points li {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .92rem;
  font-weight: 500;
  opacity: .92;
  line-height: 1.4;
}
.points li::before {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: .45rem;
  border-radius: 99px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.18);
  flex-shrink: 0;
}

.ghost-cards {
  display: grid;
  gap: .7rem;
  margin-top: 1.8rem;
  max-width: 22rem;
}
.ghost {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: .85rem 1rem;
}
.ghost .g-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .72rem;
  font-weight: 600;
  opacity: .8;
  margin-bottom: .35rem;
}
.ghost .g-title { font-weight: 650; font-size: .95rem; }
.ghost .pill {
  background: rgba(255,255,255,.2);
  padding: .12rem .5rem;
  border-radius: 999px;
  font-size: .68rem;
  font-weight: 650;
}

.brand-foot {
  font-size: .8rem;
  opacity: .8;
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  align-items: center;
}
.brand-foot a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); }
.brand-foot a:hover { border-bottom-color: #fff; text-decoration: none; color: #fff; }

/* —— Form panel —— */
.form-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 1.5rem;
}
.form-inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}
.mobile-lockup { display: none; }

.card-head h2 {
  margin: 0;
  font-size: 1.85rem;
  letter-spacing: -.03em;
  color: var(--ink);
  font-weight: 700;
}
.lede {
  margin: .45rem 0 0;
  color: var(--muted);
  font-size: .98rem;
}

form { margin: 1.6rem 0 0; }
.field { margin: 0 0 1rem; }
label.lbl {
  display: block;
  font-size: .8rem;
  font-weight: 650;
  color: var(--ink);
  margin: 0 0 .35rem;
}
.control {
  position: relative;
}
input[type="email"],
input[type="text"],
input[type="password"] {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid #d0d5dd;
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
input[type="password"] { padding-right: 4.4rem; }
input:hover { border-color: #b9c0cc; }
input:focus {
  outline: none;
  border-color: var(--acc);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 18%, transparent);
}

.toggle-pw {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  padding: .35rem .55rem;
  border-radius: 8px;
  cursor: pointer;
}
.toggle-pw:hover { color: var(--ink); background: var(--bg); }

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: .2rem 0 1.25rem;
  font-size: .86rem;
}
.remember {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  margin: 0;
}
.remember input {
  width: 16px;
  height: 16px;
  accent-color: var(--acc);
  margin: 0;
}
.hint-link { color: var(--muted); }
.hint-link:hover { color: var(--acc); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--acc);
  color: #fff;
  font: inherit;
  font-weight: 650;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--acc) 32%, transparent);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--acc-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible {
  outline: 3px solid var(--acc);
  outline-offset: 2px;
}

.legal {
  margin: 1.25rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: .82rem;
}
.legal a { color: var(--acc-ink); font-weight: 550; }
.form-foot {
  margin-top: 2.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.5;
  text-align: center;
}
.form-foot a { color: var(--muted); }
.form-foot a:hover { color: var(--acc); }

/* —— Mobile —— */
@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    align-content: start;
  }
  .brand-panel {
    padding: 1rem 1.2rem;
    gap: 0;
    justify-content: flex-start;
  }
  .brand-copy,
  .ghost-cards,
  .brand-foot { display: none !important; }
  .mark { width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; }
  .form-panel { padding: 1.5rem 1.2rem 2rem; justify-content: flex-start; }
  .card-head h2 { font-size: 1.55rem; }
}

@media (min-width: 861px) {
  .mobile-lockup { display: none !important; }
}

/* Flash di panel formulir */
.login-alerts { margin: 0 0 1.1rem; }
.login-alerts .alert:last-child { margin-bottom: 0; }
.hint-link { cursor: help; }
