/* ============================================================
   pm.nugroho.cloud — sign in
   Same dark design system as the platform landing page, so the
   two read as one product. Tokens are copied verbatim.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
img, svg { display: block; max-width: 100%; }
ul { list-style: none; }
a { color: inherit; text-decoration: none; }

:root {
  color-scheme: dark;

  --bg-base:     #0b0f17;
  --bg-surface:  #131a26;
  --bg-elevated: #1a2333;

  --border:        rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-accent: rgba(57, 135, 229, 0.40);

  --accent:          #3987e5;
  --accent-glow:     rgba(57, 135, 229, 0.12);
  --accent-gradient: linear-gradient(135deg, #3987e5, #5598e7);
  --accent-ink:      #0b0f17;   /* dark ink on the fill — white is 3.64:1 and fails AA */

  --text-primary:   #f1f5f9;
  --text-secondary: #a8b3c4;
  --text-muted:     #7d8899;

  --grid: rgba(255, 255, 255, 0.06);

  --font-primary: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  --shadow-accent: 0 8px 24px rgba(57, 135, 229, 0.22);
  --shadow-panel:  0 24px 60px rgba(0, 0, 0, 0.45);
}

body {
  font-family: var(--font-primary);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-secondary);
  background: var(--bg-base);
  -webkit-font-smoothing: antialiased;
}

h1, h2 { color: var(--text-primary); line-height: 1.2; letter-spacing: -0.02em; }

.ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 20;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 0 0 var(--radius-md) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }


/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; }

.pane { display: flex; align-items: center; padding: 48px; }
.pane-inner { width: 100%; max-width: 420px; margin: 0 auto; }

.pane-brand {
  position: relative;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.pane-brand::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 20% 0%, var(--accent-glow) 0%, transparent 70%),
    linear-gradient(var(--grid) 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, var(--grid) 1px, transparent 1px) 0 0 / 64px 100%;
  mask-image: radial-gradient(80% 80% at 30% 30%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 80% at 30% 30%, #000 0%, transparent 78%);
  pointer-events: none;
}
.pane-brand .pane-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 48px;
  min-height: 420px;
}


/* ---------- Brand side ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent-gradient);
  color: var(--accent-ink);
  font-weight: 800;
}
.logo-text { font-weight: 700; font-size: 1.0625rem; color: var(--text-primary); letter-spacing: -0.02em; }
.logo-tld { color: var(--text-muted); font-weight: 500; }

.brand-body { flex-grow: 1; }

.eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.pane-brand h1 { font-size: clamp(1.75rem, 2.6vw, 2.375rem); font-weight: 800; margin-bottom: 16px; }
.brand-lead { font-size: 1rem; margin-bottom: 32px; }

.feature-list { display: grid; gap: 12px; }
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.feature-list .ico { width: 18px; height: 18px; flex-shrink: 0; margin-top: 5px; color: var(--accent); }

.brand-foot a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}
.brand-foot a:hover { color: var(--accent); }
.brand-foot .ico { width: 16px; height: 16px; }


/* ---------- Form side ---------- */
.card {
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
.card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 6px; }
.card-sub { font-size: 0.9375rem; color: var(--text-muted); margin-bottom: 28px; }

.form { display: grid; gap: 18px; }

.field { display: grid; gap: 8px; }
.field-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}
.field-aside { font-size: 0.8125rem; font-weight: 500; color: var(--accent); }
.field-aside:hover { text-decoration: underline; }

.field input {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-primary);
  background: var(--bg-base);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.field input::placeholder { color: var(--text-muted); }
.field input:hover { border-color: var(--border-accent); }
.field input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent);
  cursor: pointer;
  flex-shrink: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 0;
  border-radius: var(--radius-md);
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}
.btn-block { width: 100%; margin-top: 4px; }
.btn-icon { width: 18px; height: 18px; transition: transform var(--transition-base); }

.btn-primary {
  background: var(--accent-gradient);
  color: var(--accent-ink);
  box-shadow: var(--shadow-accent);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(57, 135, 229, 0.32); }
.btn-primary:hover .btn-icon { transform: translateX(3px); }

.card-note {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.card-note .ico { width: 14px; height: 14px; flex-shrink: 0; }
.card-note a { color: var(--accent); font-weight: 600; }
.card-note a:hover { text-decoration: underline; }

.pane-foot { margin-top: 24px; text-align: center; font-size: 0.8125rem; color: var(--text-muted); }


/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; min-height: 0; }

  /* Sign-in first on a phone; the pitch is context, not the task */
  .pane-form  { order: 1; padding: 40px 24px 24px; }
  .pane-brand { order: 2; border-right: 0; border-top: 1px solid var(--border); padding: 40px 24px; }
  .pane-brand .pane-inner { min-height: 0; gap: 32px; }
  .pane-brand h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .card { padding: 24px; }
}


/* ---------- Motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}


/* ---------- Forced colors ---------- */
@media (forced-colors: active) {
  .card, .field input { border: 1px solid CanvasText; }
}
