/* Bancian PCS: public pages (home, log masuk, daftar) */

:root {
  --pcs-ink: #0e2148;
  --pcs-ink-2: #173268;
  --pcs-blue: #1d5bd0;
  --pcs-blue-dark: #1548aa;
  --pcs-sky: #6db8fa;
  --pcs-page: #f4f6fb;
  --pcs-surface: #ffffff;
  --pcs-line: #dde4f0;
  --pcs-text: #14203a;
  --pcs-muted: #55627b;
  --pcs-green: #0b7a55;
  --pcs-green-bg: #e3f6ee;
  --pcs-radius: 14px;
  --pcs-radius-lg: 28px;
  --pcs-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body.pcs {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--pcs-page);
  background-image: none;
  color: var(--pcs-text);
  font-family: var(--pcs-font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
}

:where(.pcs) :where(h1, h2, h3, p) { margin: 0; }

.pcs a:focus-visible,
.pcs button:focus-visible {
  outline: 3px solid var(--pcs-sky);
  outline-offset: 3px;
}

/* Top bar */
.pcs-bar {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.pcs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--pcs-ink);
  text-decoration: none;
}

.pcs-brand img {
  width: 42px;
  height: 42px;
  display: block;
  flex-shrink: 0;
}

.pcs-brand strong {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.pcs-brand small {
  display: block;
  color: var(--pcs-muted);
  font-size: 0.76rem;
  font-weight: 500;
  line-height: 1.3;
}

.pcs-bar-link {
  color: var(--pcs-muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-align: right;
}

.pcs-bar-link a {
  color: var(--pcs-blue);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.pcs-bar-link a:hover { text-decoration: underline; }

/* Buttons */
.pcs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 54px;
  padding: 0.8rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: var(--pcs-radius);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.pcs-btn svg { width: 19px; height: 19px; transition: transform 0.18s ease; }
.pcs-btn:hover svg { transform: translateX(3px); }
.pcs-btn:active { transform: scale(0.98); }

.pcs-btn-light { background: #fff; color: var(--pcs-ink); }
.pcs-btn-light:hover { background: #dcecff; }

.pcs-btn-ghost {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}
.pcs-btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.pcs-btn-primary {
  width: 100%;
  background: var(--pcs-blue);
  color: #fff;
}
.pcs-btn-primary:hover:not(:disabled) { background: var(--pcs-blue-dark); }
.pcs-btn-primary:disabled { opacity: 0.65; cursor: not-allowed; }

/* Brand gradient panel */
.pcs-beams {
  background: linear-gradient(135deg, #1d4fa8 0%, var(--pcs-ink-2) 45%, var(--pcs-ink) 100%);
  color: #fff;
}

/* Home */
.home {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem 3rem;
  flex: 1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: center;
  gap: 3.5rem;
  padding: clamp(2.5rem, 6vw, 5rem);
  border-radius: var(--pcs-radius-lg);
}

.hero-copy { animation: pcs-rise 0.6s ease both; }

.hero-kicker {
  color: var(--pcs-sky);
  font-size: 0.92rem;
  font-weight: 700;
}

.hero h1 {
  max-width: 13em;
  margin-top: 0.8rem;
  color: #fff;
  font-size: clamp(2.3rem, 4.6vw, 3.9rem);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.038em;
  text-wrap: balance;
}

.hero-lede {
  max-width: 34em;
  margin-top: 1.25rem;
  color: #d5e0f3;
  font-size: clamp(1.03rem, 1.5vw, 1.18rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  max-width: 36em;
  margin-top: 1.5rem;
  color: #b9c8e2;
  font-size: 0.9rem;
}

.hero-note strong { color: #fff; font-weight: 700; }

/* Illustration of a member record */
.record {
  padding: 1.5rem;
  border-radius: 22px;
  background: #fff;
  color: var(--pcs-text);
  box-shadow: 0 30px 60px rgba(4, 13, 36, 0.42);
  animation: pcs-rise 0.6s 0.12s ease both;
}

.record-head {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--pcs-line);
}

.record-photo {
  width: 58px;
  height: 68px;
  flex-shrink: 0;
  display: grid;
  place-items: end center;
  overflow: hidden;
  border-radius: 12px;
  background: #e4edfb;
  color: #9db7e2;
}

.record-photo svg { width: 50px; height: 56px; display: block; }
.record-id { flex: 1; min-width: 0; }

.record-bar {
  display: block;
  height: 10px;
  border-radius: 99px;
  background: #dfe6f2;
}

.record-bar + .record-bar { width: 62%; margin-top: 0.5rem; background: #edf1f8; }

.record-badge {
  display: inline-block;
  margin-top: 0.65rem;
  padding: 0.12rem 0.6rem;
  border-radius: 99px;
  background: var(--pcs-green-bg);
  color: var(--pcs-green);
  font-size: 0.74rem;
  font-weight: 700;
}

.record-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
}

.record-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.72rem 0;
  font-size: 0.94rem;
  font-weight: 600;
}

.record-list li + li { border-top: 1px solid #eef2f8; }

.record-tick {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pcs-green-bg);
  color: var(--pcs-green);
}

.record-tick svg { width: 14px; height: 14px; }

/* Steps */
.steps { padding: clamp(2.5rem, 5vw, 4rem) clamp(0rem, 4vw, 3rem) 1rem; }

.steps h2 {
  color: var(--pcs-ink);
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.028em;
}

.steps-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  margin: 1.75rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps-list li {
  position: relative;
  padding-top: 1.1rem;
  border-top: 2px solid var(--pcs-line);
  counter-increment: step;
}

.steps-list li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.45rem;
  color: var(--pcs-blue);
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1.1;
}

.steps-list h3 {
  color: var(--pcs-ink);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.steps-list p {
  margin-top: 0.3rem;
  color: var(--pcs-muted);
  font-size: 0.96rem;
}

/* Footer */
.pcs-footer {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 1.75rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.35rem 1.5rem;
  color: var(--pcs-muted);
  font-size: 0.85rem;
}

.pcs-footer a {
  color: var(--pcs-muted);
  font-weight: 600;
}

.pcs-footer a:hover { color: var(--pcs-ink); }

/* Log masuk */
.auth {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
}

.auth-main {
  display: flex;
  flex-direction: column;
  background: var(--pcs-surface);
}

.auth-main .pcs-bar { max-width: none; padding: 1.25rem 2rem; }

.auth-form-wrap {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-form-wrap h1 {
  color: var(--pcs-ink);
  font-size: clamp(1.9rem, 3vw, 2.4rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.033em;
}

.auth-sub {
  margin-top: 0.5rem !important;
  color: var(--pcs-muted);
}

.auth-form { margin-top: 1.75rem; }
.auth-field { margin-bottom: 1.15rem; }

.auth-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.auth-forgot {
  color: var(--pcs-blue);
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.auth-forgot:hover { text-decoration: underline; }

.auth-password { position: relative; }
.pcs .auth-password input { padding-right: 5.2rem; }

.auth-toggle {
  position: absolute;
  top: 50%;
  right: 0.45rem;
  transform: translateY(-50%);
  min-height: 40px;
  padding: 0 0.7rem;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--pcs-blue);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  cursor: pointer;
}

.auth-toggle:hover { background: #eaf1fd; }

.auth-switch {
  margin-top: 1.5rem !important;
  color: var(--pcs-muted);
  text-align: center;
}

.auth-switch a {
  color: var(--pcs-blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-side {
  display: flex;
  align-items: flex-end;
  padding: clamp(2.5rem, 5vw, 4.5rem);
}

.auth-side h2 {
  max-width: 11em;
  color: #fff;
  font-size: clamp(2rem, 3.4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.auth-side p {
  max-width: 28em;
  margin-top: 0.9rem;
  color: #d5e0f3;
  font-size: 1.05rem;
}

/* Fields and alerts shared by log masuk and daftar */
.pcs label {
  color: var(--pcs-ink);
  font-size: 0.9rem;
  font-weight: 600;
}

.pcs .auth-field label { display: block; margin-bottom: 0.4rem; }

.pcs input[type="text"],
.pcs input[type="tel"],
.pcs input[type="password"],
.pcs input[type="date"],
.pcs select,
.pcs textarea {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.95rem;
  border: 1.5px solid #cfd8e8;
  border-radius: 12px;
  background: #fff;
  color: var(--pcs-text);
  font-family: var(--pcs-font);
  font-size: 1rem;
  font-weight: 500;
}

.pcs input:hover,
.pcs select:hover,
.pcs textarea:hover { border-color: #9fb0cc; }

.pcs input:focus,
.pcs select:focus,
.pcs textarea:focus {
  outline: none;
  border-color: var(--pcs-blue);
  box-shadow: 0 0 0 4px rgba(29, 91, 208, 0.16);
}

.pcs input::placeholder { color: #7b879d; font-weight: 400; }

/* Daftar */
.reg {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem 3rem;
  flex: 1;
}

.reg-intro h1 {
  color: var(--pcs-ink);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.033em;
}

.reg-intro p {
  max-width: 40em;
  margin-top: 0.55rem;
  color: var(--pcs-muted);
}

.pcs .reg-card {
  margin-top: 1.75rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid var(--pcs-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: none;
}

.pcs .reg-card .form-grid { gap: 1.25rem; }
.pcs .reg-card h3 { color: var(--pcs-ink) !important; font-weight: 700; }

.pcs .btn { border-radius: 12px; box-shadow: none; font-family: var(--pcs-font); }

.pcs .btn-primary {
  background: var(--pcs-blue) !important;
  border-color: var(--pcs-blue) !important;
  box-shadow: none;
}

.pcs .btn-primary:hover:not(:disabled) {
  background: var(--pcs-blue-dark) !important;
  border-color: var(--pcs-blue-dark) !important;
  box-shadow: none;
}

.pcs .btn-secondary {
  color: var(--pcs-blue) !important;
  border-color: #cfd8e8 !important;
}

.pcs .photo-uploader { border-color: #cfd8e8; background: #f8fafd; padding: 0.85rem; }
.pcs .photo-progress-bar { background: var(--pcs-blue); }
.pcs .photo-progress-text { color: var(--pcs-blue); }

@keyframes pcs-rise {
  from { transform: translateY(14px); }
  to { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy, .record { animation: none; }
  .pcs-btn, .pcs-btn svg { transition: none; }
}

@media (max-width: 980px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 2.5rem; }
  .record { max-width: 420px; }
  .auth { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .auth-side { display: none; }
  .auth-main { min-height: 100vh; }
}

@media (max-width: 680px) {
  .pcs-bar { padding: 0.8rem 1rem; }
  .auth-main .pcs-bar { padding: 0.8rem 1rem; }
  .pcs-brand small { display: none; }
  .home { padding: 0 0.75rem 2rem; }
  .hero { padding: 2.25rem 1.35rem; border-radius: 22px; }
  .hero-visual { display: none; }
  .hero-actions { flex-direction: column; }
  .hero-actions .pcs-btn { width: 100%; }
  .steps { padding-left: 0.6rem; padding-right: 0.6rem; }
  .steps-list { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .pcs-footer { padding: 1rem; }
  .auth-form-wrap { justify-content: flex-start; padding: 1.75rem 1rem 2.5rem; }
  .reg { padding: 0.75rem 1rem 2rem; }
}
