:root {
  --primary: #1b5e20;
  --accent: #2e7d32;
  --glass: rgba(20, 40, 30, 0.75);
  --border: rgba(255,255,255,0.2);
}

* {
  box-sizing: border-box;
  font-family: 'Inter', 'Segoe UI', sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(
      rgba(180,140,40,.55),
      rgba(120,90,20,.75)
    ),
    url('https://www.majalahlintas.com//wp-content//uploads//2025//04//Jembatan-Suramadu.-Dok.-Adobe-Stock.jpg') center/cover no-repeat fixed;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  padding: 15px;
}

.card {
  width: 400px;
  padding: 18px 34px 34px;
  background:
    linear-gradient(rgba(20,40,30,.45), rgba(20,40,30,.65)),
    url("logo.png") center 24px / 200px no-repeat;
  backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 22px;
  box-shadow: 0 30px 70px rgba(0,0,0,.45);
  animation: fadeUp .8s ease;
}

form {
  position: relative;
  z-index: 3;               /* Menjamin form berada di depan logo */
}

/* NOTICE ERROR DI BAWAH FORM */
.alert-error {
  margin-top: 20px; 
  margin-bottom: 15px;
  padding: 14px 16px;
  border-radius: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  background: linear-gradient(
    135deg,
    rgba(220, 38, 38, 0.85),
    rgba(185, 28, 28, 0.9)
  );
  color: #fff;
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
  animation: fadeUp .4s ease;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(25px); }
  to { opacity: 1; transform: translateY(0); }
}

.field {
  margin-bottom: 22px; 
}

label {
  font-size: 14px; 
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
  opacity: .9;
}

.input-box {
  position: relative;
}

/* INPUT LEBIH BESAR */
input {
  width: 100%;
  margin-top: 6px;
  padding: 16px 50px 16px 16px; 
  border-radius: 14px;
  border: none;
  outline: none;
  background: rgba(255,255,255,.15);
  color: white;
  font-size: 16px; 
}

input::placeholder {
  color: rgba(255,255,255,.6);
}

input:focus {
  outline: 2px solid var(--accent);
}

/* ICON MATA LEBIH BESAR */
.toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  opacity: .75;
  font-size: 22px; 
  user-select: none;
}

.toggle:hover {
  opacity: 1;
}

/* TOMBOL UTAMA & DAFTAR */
button, a.btn-daftar {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 16px; 
  border: none;
  border-radius: 14px;
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: .3s;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

button {
  background: linear-gradient(135deg, var(--accent), var(--primary));
}

a.btn-daftar {
  background: linear-gradient(135deg, #ff9800, #f57c00);
}

button:hover, a.btn-daftar:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(0,0,0,.45);
}

#error {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  color: #ffbaba;
}

.footer {
  text-align: center;
  margin-top: 26px;
  font-size: 12px;
  opacity: .65;
}

/* RESPONSIVE SMARTPHONE (PAS DI LAYAR HP) */
@media (max-width: 420px) {
  .card {
    width: 92%;
    padding: 18px;
  }
}

/* MODAL DEVICE DI RESPONSIVE */
.device-modal {
  display: none; 
  position: fixed !important;
  z-index: 9999999 !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background-color: rgba(0, 0, 0, 0.8) !important; 
  backdrop-filter: blur(8px) !important;
}

.modal-content {
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  background: #ffffff !important;
  padding: 40px 30px !important;
  border-radius: 20px !important;
  width: 90% !important;
  max-width: 460px !important;
  text-align: center !important;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6) !important;
  box-sizing: border-box !important;
  font-family: 'Inter', 'Segoe UI', sans-serif !important;
}

.modal-icon {
  font-size: 65px !important;
  margin-bottom: 18px !important;
  display: block !important;
}

.modal-content h3 {
  margin: 0 0 15px 0 !important;
  color: #1b5e20 !important;
  font-size: 24px !important;
  font-weight: 700 !important;
}

.modal-content p {
  color: #444444 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  margin-bottom: 30px !important;
}

.btn-modal {
  background: linear-gradient(135deg, #2e7d32, #1b5e20) !important;
  color: white !important;
  border: none !important;
  padding: 16px !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  border-radius: 14px !important;
  cursor: pointer !important;
  width: 100% !important;
  display: block !important;
  box-shadow: 0 8px 20px rgba(27, 94, 32, 0.3) !important;
  transition: 0.2s !important;
}

.btn-modal:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 12px 25px rgba(27, 94, 32, 0.45) !important;
}