/* ============================================================
   SIPELOT — DPMPTSP Kabupaten Malang
   Shared CSS for public pages (login, register, reset)
   Path: ss3507/assetsp/sipelot.css
   ============================================================ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:     #0D2B6E;
  --navy-mid: #1A3F8F;
  --blue:     #1E5FD8;
  --blue-lt:  #3B82F6;
  --gold:     #F5A623;
  --glt:      #FFC857;
  --bg:       #EEF2F8;
  --white:    #FFFFFF;
  --text:     #1C2B4A;
  --muted:    #5E718D;
  --border:   #D6E0F0;
  --danger:   #DC2626;
  --ok:       #16A34A;
  --ok-bg:    #F0FDF4;
  --ok-bd:    #BBF7D0;
  --err-bg:   #FEF2F2;
  --err-bd:   #FECACA;
  --warn-bg:  #FFFBEB;
  --warn-bd:  #FDE68A;
  --warn-tx:  #78350F;
  --info-bg:  #EFF6FF;
  --info-bd:  #BFDBFE;
}

html {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}
body { min-height: 100vh; display: flex; flex-direction: column; }

/* ── HEADER ── */
.hd {
  background: var(--navy);
  padding: 20px 20px 0;
  position: relative;
  overflow: hidden;
}
.hd::before {
  content: ''; position: absolute;
  right: -60px; top: -80px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: rgba(255,255,255,.04);
  pointer-events: none;
}
.hd::after {
  content: ''; position: absolute;
  left: -40px; bottom: -50px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.03);
  pointer-events: none;
}

.hd-top {
  display: flex; align-items: center;
  justify-content: space-between;
  position: relative; z-index: 1;
  flex-wrap: wrap; gap: 10px;
}
.hd-brand { display: flex; align-items: center; gap: 12px; }
.hd-logo {
  width: 42px; height: 42px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; text-decoration: none;
}
.hd-brand-text .t1 { color: #fff; font-size: 14px; font-weight: 700; letter-spacing: .3px; }
.hd-brand-text .t2 { color: rgba(255,255,255,.5); font-size: 10.5px; margin-top: 2px; }

.hd-date {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 5px 14px;
  color: rgba(255,255,255,.7); font-size: 11px;
}

.hd-hero { position: relative; z-index: 1; padding: 24px 0 0; }

.hd-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(245,166,35,.15);
  border: 1px solid rgba(245,166,35,.3);
  border-radius: 100px; padding: 4px 12px;
  color: var(--glt); font-size: 10px; font-weight: 700;
  letter-spacing: .5px; margin-bottom: 12px;
}
.hd-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold); display: inline-block;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.25} }

.hd-back {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 100px; padding: 4px 12px;
  color: rgba(255,255,255,.75); font-size: 11px; font-weight: 500;
  text-decoration: none; margin-bottom: 10px;
  transition: background .15s;
}
.hd-back:hover { background: rgba(255,255,255,.18); }
.hd-back svg { width: 12px; height: 12px; }

.hd-h {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(20px, 4.5vw, 28px);
  font-weight: 800; color: #fff;
  line-height: 1.25; margin-bottom: 8px;
}
.hd-h span { color: var(--glt); }

.hd-desc {
  font-size: 13px; color: rgba(255,255,255,.6);
  line-height: 1.65; margin-bottom: 26px; max-width: 460px;
}
.hd-wave { display: block; margin-bottom: -2px; }

/* ── PAGE BODY ── */
.body {
  flex: 1; padding: 20px 16px 32px;
  width: 100%; margin: 0 auto;
}

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: 18px;
  border: 1px solid var(--border);
  overflow: hidden;
}

/* ── BANNER / INFO BOXES ── */
.info-box {
  background: var(--info-bg);
  border-bottom: 1px solid var(--info-bd);
  padding: 13px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.info-box .box-icon {
  width: 30px; height: 30px;
  background: var(--blue); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.info-box .box-icon svg { width: 15px; height: 15px; color: #fff; }
.info-box .box-title { font-size: 10.5px; font-weight: 700; color: #1E40AF; letter-spacing: .3px; margin-bottom: 5px; }
.info-box .box-list { list-style: none; padding: 0; }
.info-box .box-list li {
  font-size: 11.5px; color: #1E3A8A; line-height: 1.5;
  padding: 2px 0; display: flex; align-items: flex-start; gap: 7px;
}
.info-box .box-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue); flex-shrink: 0; margin-top: 6px;
}

.warn-box {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-bd);
  padding: 13px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.warn-box .box-icon {
  width: 30px; height: 30px;
  background: #F59E0B; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.warn-box .box-icon svg { width: 15px; height: 15px; color: #fff; }
.warn-box .box-title { font-size: 10.5px; font-weight: 700; color: #92400E; letter-spacing: .3px; margin-bottom: 5px; }
.warn-box .box-list { list-style: none; padding: 0; }
.warn-box .box-list li {
  font-size: 11.5px; color: var(--warn-tx); line-height: 1.5;
  padding: 2px 0; display: flex; align-items: flex-start; gap: 7px;
}
.warn-box .box-list li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: #F59E0B; flex-shrink: 0; margin-top: 6px;
}

.ticker {
  background: var(--warn-bg);
  border-bottom: 1px solid var(--warn-bd);
  padding: 12px 18px;
  display: flex; align-items: flex-start; gap: 10px;
}
.ticker .box-icon {
  width: 30px; height: 30px; background: #F59E0B;
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.ticker .box-icon svg { width: 15px; height: 15px; color: #fff; }
.ticker-label { font-size: 9.5px; font-weight: 700; color: #92400E; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 3px; display: flex; align-items: center; gap: 4px; }
.ticker-text  { font-size: 11.5px; color: var(--warn-tx); line-height: 1.5; }

/* ── FORM AREA ── */
.form-area { padding: 22px 18px 20px; }
.form-h {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 17px; font-weight: 800; color: var(--text); margin-bottom: 4px;
}
.form-s { font-size: 12px; color: var(--muted); margin-bottom: 20px; }

/* Section label */
.section-label {
  font-size: 10px; font-weight: 700; color: var(--muted);
  letter-spacing: 1px; text-transform: uppercase;
  border-bottom: 1px solid var(--bg);
  padding-bottom: 7px; margin: 20px 0 16px;
}

/* Field */
.field { margin-bottom: 15px; }
.field label {
  display: block; font-size: 10.5px; font-weight: 600;
  color: var(--muted); margin-bottom: 6px;
  letter-spacing: .4px; text-transform: uppercase;
}
.req { color: var(--danger); }
.field-hint { font-size: 11px; color: var(--muted); margin-top: 5px; line-height: 1.5; font-style: italic; }
.field-hint.warn { color: #B45309; }
.field-hint.ok   { color: var(--ok); font-style: normal; }
.field-hint.red  { color: var(--danger); font-style: normal; }

/* Input wrap */
.inp-wrap {
  display: flex; align-items: center; gap: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px; padding: 11px 13px;
  background: #F8FAFD;
  transition: border-color .2s, background .2s;
}
.inp-wrap:focus-within {
  border-color: var(--blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(30,95,216,.1);
}
.inp-wrap.err   { border-color: var(--danger) !important; background: var(--err-bg); }
.inp-wrap.valid { border-color: var(--ok); }
.inp-wrap svg   { width: 15px; height: 15px; color: #8BA3C0; flex-shrink: 0; }
.inp-wrap input,
.inp-wrap select {
  flex: 1; border: none; background: transparent;
  font-family: 'Inter', sans-serif; font-size: 13.5px; color: var(--text);
  outline: none; min-width: 0;
}
.inp-wrap input::placeholder { color: #A0B4C8; }
.inp-wrap select { cursor: pointer; }

/* Error box (inline) */
.error-box {
  margin: 16px 18px 0;
  background: var(--err-bg); border: 1px solid var(--err-bd);
  border-radius: 10px; padding: 10px 14px;
  font-size: 12.5px; color: var(--danger);
  display: flex; align-items: center; gap: 8px;
}
.error-box svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Captcha */
.captcha-stack { display: flex; flex-direction: column; gap: 8px; }
.captcha-img-row {
  border: 1.5px solid var(--border); border-radius: 10px; overflow: hidden;
  cursor: pointer; display: flex; align-items: center;
  justify-content: space-between;
  background: #F0F4FB; padding: 0 12px 0 0; gap: 10px;
  transition: border-color .2s;
}
.captcha-img-row:hover { border-color: #A0B8D8; }
.captcha-img-row img  { height: 46px; display: block; flex-shrink: 0; max-width: 140px; object-fit: cover; }
.captcha-refresh { font-size: 11px; color: var(--muted); white-space: nowrap; }

/* Checkbox */
.check-label {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--muted);
  cursor: pointer; user-select: none;
}
.check-label input[type="checkbox"] { display: none; }
.check-box {
  width: 16px; height: 16px; border: 2px solid var(--border);
  border-radius: 4px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all .15s;
}
.check-label input:checked ~ .check-box { background: var(--navy); border-color: var(--navy); }
.check-label input:checked ~ .check-box::after { content: '✓'; color: #fff; font-size: 10px; font-weight: 800; }

/* Terms row */
.terms-row {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--bg); border-radius: 10px;
  padding: 12px 14px; margin-top: 20px;
}
.terms-row input[type="checkbox"] { display: none; }
.terms-row .check-box {
  width: 18px; height: 18px; border: 2px solid var(--border);
  border-radius: 5px; margin-top: 1px;
}
.terms-row input:checked + .check-box { background: var(--navy); border-color: var(--navy); }
.terms-row input:checked + .check-box::after { content: '✓'; color: #fff; font-size: 11px; font-weight: 800; }
.terms-text { font-size: 11.5px; color: var(--muted); line-height: 1.55; cursor: pointer; }
.terms-text strong { color: var(--text); }

/* Remember / bottom row */
.bottom-row {
  display: flex; justify-content: space-between;
  align-items: center; margin: 2px 0 18px;
}
.forget-link { font-size: 12px; color: var(--blue); font-weight: 500; text-decoration: none; }
.forget-link:hover { text-decoration: underline; }

/* ── BUTTONS ── */
.btn-masuk,
.btn-submit,
.btn-primary {
  display: block; width: 100%; padding: 13px;
  background: var(--navy); color: #fff;
  border: none; border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 700;
  letter-spacing: .3px; cursor: pointer;
  text-decoration: none; text-align: center;
  transition: opacity .2s;
}
.btn-masuk:hover,
.btn-submit:hover,
.btn-primary:hover { opacity: .88; }
.btn-masuk:active,
.btn-submit:active,
.btn-primary:active { transform: scale(.99); }

.btn-cancel,
.btn-secondary {
  display: block; width: 100%; padding: 13px;
  background: transparent; color: var(--muted);
  border: 1.5px solid var(--border); border-radius: 10px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none; text-align: center;
  transition: background .15s, color .15s;
}
.btn-cancel:hover,
.btn-secondary:hover { background: var(--bg); color: var(--text); }

.btn-row { display: flex; gap: 10px; margin-top: 20px; }
.btn-row .btn-cancel,
.btn-row .btn-secondary { width: auto; padding: 13px 20px; white-space: nowrap; }

/* ── BOTTOM LINKS ── */
.bottom-links {
  display: flex; border-top: 1px solid var(--bg);
}
.bottom-link {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 13px 8px; font-size: 11.5px; color: var(--muted);
  text-decoration: none; border-right: 1px solid var(--bg);
  transition: background .15s, color .15s;
}
.bottom-link:last-child { border-right: none; }
.bottom-link:hover { background: var(--bg); color: var(--text); }
.bottom-link svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; }

.bottom-link-row {
  border-top: 1px solid var(--bg);
  padding: 13px 18px;
  display: flex; align-items: center; justify-content: center;
  gap: 5px; font-size: 12px; color: var(--muted);
}
.bottom-link-row a { color: var(--blue); font-weight: 500; text-decoration: none; }
.bottom-link-row a:hover { text-decoration: underline; }

.reg-row {
  display: flex; justify-content: center; align-items: center;
  gap: 5px; margin-top: 14px; font-size: 12px; color: var(--muted);
}
.reg-row a { color: var(--blue); font-weight: 500; text-decoration: none; }

/* Divider */
.divider { height: 1px; background: var(--bg); margin: 18px 0 16px; }

/* PBG card link */
.pbg-link {
  display: flex; align-items: center; gap: 12px;
  background: #F0F5FF; border: 1.5px solid #C3D9F8;
  border-radius: 12px; padding: 13px 15px;
  text-decoration: none; transition: border-color .2s;
}
.pbg-link:hover { border-color: var(--blue); }
.pbg-icon {
  width: 36px; height: 36px; background: var(--blue);
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pbg-icon svg { width: 18px; height: 18px; color: #fff; }
.pbg-text .l1 { font-size: 13px; font-weight: 700; color: var(--text); }
.pbg-text .l2 { font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.pbg-arr { margin-left: auto; color: var(--blue); }
.pbg-arr svg { width: 16px; height: 16px; }

/* Date chip */
.date-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--bg); border-radius: 8px;
  padding: 6px 14px; font-size: 12px; color: var(--muted);
  margin-bottom: 20px;
}

/* ── RESULT / FINISH PAGES ── */
.result-area { padding: 36px 24px 28px; text-align: center; }

.result-icon {
  width: 76px; height: 76px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative;
}
.result-icon.ok  { background: var(--ok-bg); border: 2px solid var(--ok-bd); }
.result-icon.err { background: var(--err-bg); border: 2px solid var(--err-bd); }
.result-icon svg { width: 36px; height: 36px; }
.result-icon.ok  svg { color: var(--ok); }
.result-icon.err svg { color: var(--danger); }

.result-icon.ok::after {
  content: ''; position: absolute; inset: -8px;
  border-radius: 50%; border: 2px solid var(--ok-bd);
  animation: ring 1.8s ease-out infinite;
}
@keyframes ring {
  0%   { opacity: .7; transform: scale(1); }
  100% { opacity: 0;  transform: scale(1.35); }
}

.result-title {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 21px; font-weight: 800; margin-bottom: 8px;
}
.result-title.ok  { color: var(--ok); }
.result-title.err { color: var(--danger); }

.result-sub {
  font-size: 13.5px; color: var(--muted);
  line-height: 1.75; margin-bottom: 28px;
}
.result-sub strong { color: var(--text); }

/* Steps */
.steps {
  background: var(--bg); border-radius: 12px;
  padding: 16px 18px; margin-bottom: 24px; text-align: left;
}
.steps-title {
  font-size: 10.5px; font-weight: 700; color: var(--muted);
  letter-spacing: .5px; text-transform: uppercase; margin-bottom: 12px;
}
.step-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 9px 0; border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; padding-bottom: 0; }
.step-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
}
.step-text { font-size: 12.5px; color: var(--text); line-height: 1.55; }
.step-text span { color: var(--muted); font-size: 11.5px; display: block; margin-top: 2px; }

/* Email note */
.email-note {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--warn-bg); border: 1px solid var(--warn-bd);
  border-radius: 10px; padding: 12px 14px;
  margin-bottom: 20px; text-align: left;
}
.email-note svg { width: 18px; height: 18px; color: #D97706; flex-shrink: 0; margin-top: 1px; }
.email-note p { font-size: 12px; color: var(--warn-tx); line-height: 1.55; }

/* ── PAGE FOOTER ── */
.page-foot {
  text-align: center; padding: 14px 0 0;
  font-size: 11px; color: #8BA3C0;
}

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
  .hd { padding: 28px 36px 0; }
  .body { padding: 28px 24px 48px; }
  .form-area { padding: 26px 24px 22px; }
  .info-box, .warn-box, .ticker { padding-left: 24px; padding-right: 24px; }
  .error-box { margin-left: 24px; margin-right: 24px; }
  .bottom-link-row { padding: 14px 24px; }
  .result-area { padding: 40px 32px 32px; }
}
