/* Background */
body {
  margin: 0;
  padding: 0;
  background: url('../images/cobaBg.png') no-repeat center center fixed;
  background-size: cover;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Container utama */
.container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  width: 100vh;
}

/* Kolom kanan */
.right {
  flex: 1;
  background-color: rgba(0, 64, 0, 0.6);
  border-radius: 20px;
  padding: 10px 30px 30px 30px;
  max-width: 400px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  margin-top: 50px;
}

/* Logo */
.logo {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}
.logo img {
  max-height: 50px;
}

/* Form */
.form-box {
  display: flex;
  flex-direction: column;
}

.input {
  padding: 12px;
  margin-bottom: 15px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  background-color: rgba(255,255,255,0.1);
  color: #fff;
  transition: all 0.2s ease-in-out;
}

.input:focus,
.input:hover {
  transform: scale(1.05);   /* membesar 5% */
  background-color: rgba(255,255,255,0.2); /* opsional, biar lebih jelas */
  border: 1px solid #3b82f6;               /* garis fokus biru */
}

.input::placeholder {
  color: #ddd;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  margin-bottom: 20px;
}

.options a,
.options a:visited {
  color: #fff;
}

.checkbox input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 14px;
  height: 14px;
  border: 2px solid #fff;   /* border putih */
  border-radius: 2px;
  background-color: #fff;   /* kotak putih solid */
  cursor: pointer;
  position: relative;
}

/* Saat dicentang */
.checkbox input[type="checkbox"]:checked {
  background-color: #fff; /* isi tetap putih */
}

/* Centang custom */
.checkbox input[type="checkbox"]:checked::after {
  content: "✓";
  color: #004d26; /* centang hijau gelap biar kontras */
  font-size: 14px;
  font-weight: bold;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* Tombol */
.btn {
  background-color: #004d26;
  color: #fff;
  border: none;
  padding: 14px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  margin-bottom: 15px;
  transition: all 0.2s ease-in-out;
}
.btn:hover {
  background-color: #00994d;
}
.btn.secondary {
  background-color: #004d26;
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 12px;
  color: #fff;
  transition: all 0.2s ease-in-out;
}
.btn.secondary:hover {
  background-color: #00994d;
  color: #fff;
}

.btn:focus-visible,
.btn:hover,
.btn.secondary:hover,
.btn.secondary:focus-visible {
  transform: scale(1.05);
  background-color: #00994d;  /* tetap hijau gelap */
  color: #fff;                /* teks putih */
  outline: 3px solid #3b82f6; /* ring fokus biru */
  outline-offset: 3px;
}

/* Register */
.register {
  text-align: center;
  margin-top: 10px;
}

/* Guest */
.guest {
  text-align: center;
  margin-top: 10px;
}

/* Reset */
h2 {
  text-align: center;
  padding-top: 5px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  font-family: Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
}

.judul {
  background-color: rgba(0, 139, 0, 0.786);
  width: 190px;
  height: 40px;
  border-radius: 10px;
  justify-items: center;
  margin: 2px auto 2px auto;
  box-shadow: 10px 10px 15px rgba(0, 0, 0, 0.3);
  margin-bottom: 20px;
}
  
.alert {
    padding: 10px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: left;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

/* Ring fokus jelas */
.input:focus-visible,
.right a:focus-visible,
select:focus-visible,
input[type="checkbox"]:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 8px; /* checkbox & input */
}

/* Opsional: biar link ‘Lupa Password’ kebaca fokusnya di background gelap */
.right a:focus-visible {
  border-radius: 6px;
}

/* (opsional) State aktif mengikuti roving tabindex */
.is-active {
  box-shadow: 0 0 0 3px rgba(59,130,246,.33);
}

/* Opsional: highlight aktif mengikuti roving tabindex */
#resetScope .is-active {
  box-shadow: 0 0 0 3px rgba(59,130,246,.33);
}

/* Ring fokus jelas */
#resetScope .form-control:focus-visible,
#resetScope button:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 3px;
  border-radius: 8px;
}
