:root{
  --blue:#2563eb;
  --blue-soft:#eff6ff;
  --bg:#f3f4f6;
  --card-bg:#ffffff;
  --border:#e5e7eb;
  --text-main:#0f172a;
  --text-muted:#6b7280;
}

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

html,body{
  height:100%;
  margin:0;
}

.auth-body{
  font-family:Inter,system-ui,-apple-system,Segoe UI,Roboto,Arial,Helvetica,sans-serif;
  background: radial-gradient(120% 160% at top left,#e0ecff 0,#f9fafb 40%,#ffffff 100%);
  color:var(--text-main);
  position:relative;
  overflow:hidden;
}

/* Canvas background */
#bg-net{
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  opacity:0.7;
}

/* Layout */
.auth-wrap{
  position:relative;
  z-index:1;
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:24px;
}

.auth-card{
  position:relative;
  width:100%;
  max-width:420px;
  background:var(--card-bg);
  border-radius:18px;
  padding:24px 22px 26px; /* tambah bawah sedikit untuk “jalan” */
  border:1px solid rgba(226,232,240,0.9);
  box-shadow:
    0 18px 40px rgba(15,23,42,0.10),
    0 6px 20px rgba(15,23,42,0.06);
}

/* “Jalan” tipis di bawah card (ciri khas kendaraan, tetap halus) */
.auth-card::before{
  content:'';
  position:absolute;
  left:18px;
  right:18px;
  bottom:10px;
  height:3px;
  border-radius:999px;
  background:
    linear-gradient(90deg,
      #e5e7eb 0,#e5e7eb 12%,
      transparent 12%,transparent 24%,
      #e5e7eb 24%,#e5e7eb 36%,
      transparent 36%,transparent 48%,
      #e5e7eb 48%,#e5e7eb 60%,
      transparent 60%,transparent 72%,
      #e5e7eb 72%,#e5e7eb 84%,
      transparent 84%,transparent 100%);
  opacity:0.75;
  pointer-events:none;
}

/* Row kecil di atas (chip + role) */
.auth-chip-row{
  display:flex;
  justify-content:center;
  margin-bottom:16px;
}


/* Chip tema kendaraan */
.auth-chip{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:8px 16px;
  border-radius:999px;
  background:#ffffff;
  border:1px solid #e5e7eb;
  box-shadow:0 10px 26px rgba(15,23,42,0.06);
}

.auth-chip-icon{
  width:34px;
  height:34px;
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;

  background:#0f172a;       /* dark navy, biar kontras */
  color:#ffffff;
  box-shadow:0 4px 10px rgba(15,23,42,0.45);
  flex-shrink:0;
}


.auth-chip-icon .bi{
  font-size:1.1rem;
}

.auth-chip-title{
  display:block;
  font-size:0.78rem;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:0.16em;
  color:#0f172a;
}

.auth-chip-sub{
  display:block;
  font-size:0.7rem;
  text-transform:uppercase;
  letter-spacing:0.18em;
  color:#6b7280;
}

/* Pill role admin & user */
.auth-pill-role{
  padding:3px 9px;
  border-radius:999px;
  border:1px solid #e5e7eb;
  font-size:0.75rem;
  color:var(--text-muted);
  white-space:nowrap;
}

/* Logo & judul */
.auth-logo{
  width:72px;
  height:72px;
  object-fit:contain;
  display:block;
  margin:4px auto 8px;
}

.auth-title{
  text-align:center;
  font-weight:700;
  font-size:1.3rem;
  color:var(--text-main);
  margin:0 0 8px;
  line-height:1.3;
}

.auth-title-sub{
  display:block;
  margin-top:2px;
  font-size:0.82rem;
  color:var(--text-muted);
  font-weight:500;
}

/* Alert */
.alert{
  border-radius:10px;
  padding:8px 10px;
  font-size:0.85rem;
  margin:4px 0 10px;
}

.alert-danger{
  background:#fef2f2;
  color:#b91c1c;
  border:1px solid #fecaca;
}

.alert-success{
  background:#ecfdf3;
  color:#15803d;
  border:1px solid #bbf7d0;
}

/* Form */
label{
  display:block;
  font-weight:600;
  color:#111827;
  margin:0 0 6px;
  font-size:0.86rem;
}

.form-control{
  width:100%;
  height:42px;
  border:1px solid #e6e8ef;
  border-radius:10px;
  padding:10px 12px;
  outline:none;
  background:#ffffff;
  font-size:0.9rem;
  transition:
    border-color .18s ease,
    box-shadow .18s ease,
    background-color .18s ease;
}

.form-control:focus{
  border-color:#bfdbfe;
  box-shadow:0 0 0 3px rgba(37,99,235,0.20);
  background:#ffffff;
}

.mb-3{ margin-bottom:12px; }
.mb-4{ margin-bottom:16px; }

.input-groupish{
  position:relative;
}

.password-toggle{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  opacity:.7;
  cursor:pointer;
  user-select:none;
  font-size:0.95rem;
}

.password-toggle:hover{
  opacity:1;
}

/* Tombol login */
.btn.btn-login{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width:100%;
  height:44px;
  border-radius:999px;
  border:none;
  cursor:pointer;
  background:linear-gradient(135deg,#2563eb,#0ea5e9);
  color:#ffffff;
  font-weight:700;
  font-size:0.95rem;
  box-shadow:0 10px 24px rgba(37,99,235,0.35);
  transition:
    transform .14s ease,
    box-shadow .14s ease,
    filter .14s ease;
}

.btn.btn-login .btn-arrow{
  font-size:1.1rem;
  transform:translateX(0);
  transition:transform .14s ease;
}

.btn.btn-login:hover{
  filter:brightness(1.03);
  transform:translateY(-1px);
  box-shadow:0 16px 32px rgba(37,99,235,0.36);
}

.btn.btn-login:active{
  transform:translateY(0);
  box-shadow:0 8px 18px rgba(37,99,235,0.30);
}

.btn.btn-login:hover .btn-arrow{
  transform:translateX(2px);
}

/* Footer kecil */
.auth-footer-note{
  margin-top:14px;
  font-size:0.78rem;
  color:#9ca3af;
  text-align:center;
}

/* Responsive */
@media (max-width: 576px){
  .auth-wrap{
    padding:16px;
  }
  .auth-card{
    padding:20px 18px 24px;
  }
  .auth-title{
    font-size:1.2rem;
  }
  .auth-chip-row{
    flex-direction:column;
    align-items:flex-start;
  }
}
