/* ===================================================== */
/* ================= RESET DASAR ======================= */
/* ===================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  min-height: 100vh;
  background: url("../images/img.jpg") no-repeat center center / cover;
}

/* ===================================================== */
/* =============== HALAMAN INDEX ======================= */
/* ===================================================== */
.container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;   /* CENTER HORIZONTAL */
  align-items: center;       /* CENTER VERTICAL */
}

.overlay {
  background-color: rgba(0, 50, 50, 0.65);
  padding: 40px 35px;
  border-radius: 20px;
  text-align: center;

  width: 100%;
  max-width: 420px; /* 🔥 UBAH UKURAN CARD DI SINI */
}

.overlay img {
  width: 130px;
  margin-bottom: 20px;
}

.overlay h1 {
  color: #d4a017;
  font-size: 1.6rem;
  margin-bottom: 30px;
  line-height: 1.4;
}

.buttons {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn {
  text-decoration: none;
  padding: 12px;
  border-radius: 25px;
  font-weight: 600;
  color: white;
}

.btn-gold {
  background: linear-gradient(45deg, #c7a008, #e4c451);
}

.btn-dark {
  background-color: #001f3f;
}

/* ===================================================== */
/* ================= HALAMAN LOGIN ===================== */
/* ===================================================== */
.login-container {
  max-width: 380px;
  margin: auto;
  margin-top: 8vh;
  background-color: rgba(26, 71, 61, 0.92);
  padding: 40px 30px;
  border-radius: 14px;
  text-align: center;
}

.login-container img {
  width: 120px;
}

.organization-name {
  color: #C5AA6F;
  font-size: 13px;
  margin: 10px 0 25px;
}

.input-group {
  position: relative;
  margin-bottom: 18px;
}

.input-group input {
  width: 100%;
  padding: 13px 42px 13px 15px;
  border-radius: 20px;
  border: 1px solid #4A8C7B;
  background-color: #246050;
  color: white;
}

.toggle-password,
.icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #C5AA6F;
}

.forgot-password {
  display: block;
  text-align: right;
  font-size: 13px;
  color: #C5AA6F;
  margin-bottom: 20px;
}

.login-button {
  width: 100%;
  padding: 13px;
  border-radius: 22px;
  border: none;
  background: linear-gradient(#E8A848, #C5AA6F);
  font-weight: bold;
  cursor: pointer;
}

/* ===================================================== */
/* ================ HALAMAN DAFTAR ===================== */
/* ===================================================== */
.register-container {
  max-width: 550px;
  margin: 6vh auto;
  background-color: rgba(21, 74, 56, 0.96);
  padding: 35px;
  border-radius: 14px;
}

.registrasi-header {
  margin-bottom: 25px;
}

.title {
  color: white;
  font-size: 26px;
}

.subtitle {
  color: #ccc;
  font-size: 13px;
}

.two-forms {
  display: flex;
  gap: 15px;
}

.input-group label {
  color: white;
  font-size: 14px;
  margin-bottom: 5px;
  display: block;
}

.daftar-btn {
  width: 100%;
  margin-top: 15px;
  padding: 13px;
  border-radius: 22px;
  background: linear-gradient(#E8A848, #C5AA6F);
  border: none;
  font-weight: bold;
}

/* ===================================================== */
/* =============== HALAMAN BERHASIL ==================== */
/* ===================================================== */

.success-container {
  min-height: 100vh;
  width: 100%;
  background: url("../images/img.jpg") no-repeat center center / cover;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* BOX UTAMA */
.success-box {
  background-color: rgba(0, 50, 50, 0.85);
  backdrop-filter: blur(6px);
  padding: 45px 40px;
  border-radius: 20px;
  text-align: center;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
}

/* LOGO */
.success-logo {
  width: 110px;
  margin-bottom: 20px;
}

/* JUDUL */
.success-box h2 {
  color: #d4a017;
  font-size: 1.9rem;
  font-weight: 700;
  margin-bottom: 25px;
  line-height: 1.4;
}

/* ICON CEKLIS */
.checkmark {
  font-size: 70px;
  color: #00e676;
  background-color: rgba(0, 128, 96, 0.3);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 25px;
}

/* PARAGRAF */
.success-box p {
  color: #f1c65a;
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 35px;
}

/* TOMBOL */
.success-box .btn-gold {
  display: inline-block;
  padding: 12px 40px;
  border-radius: 30px;
  background: linear-gradient(45deg, #c7a008, #e4c451);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.success-box .btn-gold:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}


/* ===================================================== */
/* ================= RESPONSIVE ======================== */
/* ===================================================== */
@media (max-width: 768px) {
  .overlay {
    max-width: 90%;
    padding: 30px;
  }

  .two-forms {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .overlay h1 {
    font-size: 1.3rem;
  }

  .login-container,
  .register-container {
    margin: 5vh 15px;
  }
}

/* ===================================================== */
/* ========== CENTER LOGIN & REGISTER DI MOBILE ======== */
/* ===================================================== */
@media (max-width: 768px) {

  body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .login-container,
  .register-container {
    margin: 0;
    width: 100%;
    max-width: 420px;
  }
}
