*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary:  #2F4F6F;
  --accent:   #1ABC9C;
  --accent-h: #17a589;
  --bg:       #f0f4f8;
  --white:    #ffffff;
  --border:   #dce3ea;
  --text:     #1a2633;
  --muted:    #7a8fa3;
  --error:    #d94f4f;
}

html, body {
  height: 100%;
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
}

body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: url(../img/login_bg.jpg);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 100vh;
}

body::after {
  content: '';
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 10;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.card {
  position: relative; z-index: 1;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 4px 6px rgba(0,0,0,.04), 0 16px 40px rgba(47,79,111,.10);
  animation: fadeUp .45s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── LOGO ── */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;  /* hapus background biru */
  border-radius: 0;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.logo-name {
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -.3px;
}

.logo-name span { color: var(--accent); }

/* ── TYPOGRAPHY ── */
.card-title { font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 4px; letter-spacing: -.3px; }
.card-sub   { font-size: 13px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }

/* ── ERROR MSG ── */
.error-msg {
  display: none; align-items: center; gap: 8px;
  background: #fdf2f2; border: 1px solid #f5c5c5;
  border-radius: 8px; padding: 10px 12px;
  font-size: 13px; color: var(--error); margin-bottom: 16px;
}
.error-msg.show { display: flex; }
.error-msg svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── FIELD ── */
.field { margin-bottom: 16px; }
label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap svg.icon {
  position: absolute; left: 12px; width: 15px; height: 15px;
  color: var(--muted); pointer-events: none; transition: color .2s;
}

input {
  width: 100%; padding: 11px 12px 11px 38px;
  border: 1.5px solid var(--border); border-radius: 9px;
  font-family: inherit; font-size: 14px; color: var(--text);
  background: #fafbfc; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus {
  border-color: var(--accent); background: var(--white);
  box-shadow: 0 0 0 3px rgba(26,188,156,.13);
}
.input-wrap:focus-within svg.icon { color: var(--accent); }
input::placeholder { color: #b5c4d1; }

/* ── EYE BUTTON ── */
.eye-btn {
  position: absolute; right: 10px; background: none; border: none;
  cursor: pointer; color: var(--muted); padding: 4px;
  display: flex; align-items: center; transition: color .2s;
}
.eye-btn:hover { color: var(--accent); }
.eye-btn svg { width: 15px; height: 15px; }

/* ── BUTTON ── */
.btn {
  width: 100%; padding: 12px;
  background: var(--accent); border: none; border-radius: 9px;
  color: #fff; font-family: inherit; font-size: 14px; font-weight: 700;
  cursor: pointer; margin-top: 4px;
  transition: background .2s, transform .12s, box-shadow .2s;
}
.btn:hover { background: var(--accent-h); box-shadow: 0 6px 20px rgba(26,188,156,.28); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-inner { display: flex; align-items: center; justify-content: center; gap: 8px; }

/* ── SPINNER ── */
.spinner {
  width: 15px; height: 15px;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .65s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── PANEL CLUSTER ── */
#panel-cluster { display: none; }
#panel-cluster.show { display: block; }

.success-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: #edfaf6; border: 1px solid #a8e8d8;
  border-radius: 100px; padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: #138f74; margin-bottom: 20px;
}
.success-tag .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: blink 1.2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:.25;} }

hr.sep { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.back-row { font-size: 12.5px; color: var(--muted); text-align: center; }
.back-row a { color: var(--accent); text-decoration: none; font-weight: 600; }
.back-row a:hover { text-decoration: underline; }
.footer { font-size: 12px; color: var(--muted); text-align: center; margin-top: 20px; line-height: 1.6; }