@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Montserrat", sans-serif;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: #aad3df;
}

.container {
  position: relative;
  width: 850px;
  height: 500px;
  background: #fff;
  border-radius: 30px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-wrap: wrap;
}

.form-container {
  display: flex;
  width: 100%;
  height: 100%;
  transition: 1s ease-in-out;
}

/* Login Box */
.login-box {
  width: 50%;
  height: 100%;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.login-box h1 {
  font-size: 32px;
  color: #000;
  margin-bottom: 30px;
  text-align: center;
}

.input-box {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
}

.input-box input {
  width: 100%;
  padding: 12px 40px;
  border: 2px solid #ccc;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  transition: 0.3s ease;
}

.input-box input:focus {
  border-color: #1b75a7;
  box-shadow: 0 0 10px rgba(7, 47, 179, 0.3);
  outline: none;
}

.input-box i {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
}

.input-box input::placeholder {
  color: #aaa;
}

.forgot {
  font-size: 13px;
  text-align: center;
  margin-bottom: 20px;
  color: #555;
}

.btn {
  width: 100%;
  padding: 12px;
  background: #1b75a7;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.3s ease;
}

.btn:hover {
  background: #155c84;
}

.form-footer {
  text-align: center;
  font-size: 12px;
  color: #777;
  margin-top: 25px;
}

/* Welcome Box */
.overlay {
  flex: 1;
  background: url('/assets/gambar.png') no-repeat center center;
  background-size: cover;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}


.welcome-box {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: #1b75a7;
  color: white;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top-left-radius: 80px;
  border-bottom-left-radius: 80px;
  z-index: 2;
  transition: 1s ease-in-out;
}

.container.active .welcome-box {
  right: -50%;
  transition: 1s ease-in-out;
}

.welcome-box h1 {
  font-size: 32px;
  margin-bottom: 10px;
  text-align: center;
}

.capital-text {
  font-size: 20px;
  margin-top: 5px;
  margin-bottom: 20px;
  text-align: center;
  color: #f9e373;
}

.normal-text {
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
  text-align: center;
  color: white;
}

.welcome-box p {
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.register-btn {
  padding: 10px 25px;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.register-btn:hover {
  background: white;
  color: #155c84;
}

.hidden {
  display: none;
}

/* Register Box */
.register-box {
  width: 50%;
  height: 100%;
  padding: 50px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #fff;
}

.register-box h1 {
  font-size: 32px;
  color: #000;
  margin-bottom: 30px;
  text-align: center;
}

/* WelcomeBack Box */
.WelcomeBack-box {
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: #1b75a7;
  color: white;
  padding: 60px 30px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  border-top-right-radius: 80px;
  border-bottom-right-radius: 80px;
  z-index: 2;
  transition: 1s ease-in-out;
}

.container.active .WelcomeBack-box {
  left: 0;
  transition: 1s ease-in-out;
}

.WelcomeBack-box h1 {
  font-size: 32px;
  margin-bottom: -10px;
  text-align: center;
}

.WelcomeBack-box p {
  font-size: 14px;
  margin-bottom: 20px;
  text-align: center;
}

.login-btn {
  padding: 10px 25px;
  background: transparent;
  border: 2px solid white;
  color: white;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s ease;
}

.login-btn:hover {
  background: white;
  color: #155c84;
}

/* Style untuk logo */
.logo {
 max-width: 250px;   /* ukuran maksimum */
  width: 80%;         /* skala otomatis sesuai layar */
  height: auto;       /* biar proporsi nggak rusak */
  margin: 0 auto 15px auto; /* posisi tengah + jarak bawah */
  display: block;     /* supaya margin auto bisa kerja */
  filter: drop-shadow(0 0 10px rgba(0, 255, 255, 0.7)); /* efek glow */}

/* Modal Overlay */
.custom-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.custom-modal {
  background: white;
  padding: 0;
  border-radius: 8px;
  text-align: center;
  width: 380px;
  max-width: 90%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  font-family: Arial, sans-serif;
  overflow: hidden;
}

.custom-modal-header-container {
  background-color: #f0f0f0;
  padding: 10px 20px;
  text-align: left;
  font-size: 14px;
  color: #555;
  font-weight: bold;
  border-bottom: 1px solid #eee;
}

.custom-modal-content-area {
  padding: 30px 40px;
  background-color: #fff;
}

.custom-modal-icon-container {
  font-size: 60px;
  margin-bottom: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 20px auto;
  box-sizing: border-box;
}

.custom-modal-icon-container i {
  font-size: 3em;
}

.custom-modal-title-text {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #333;
}

.custom-modal-description-text {
  font-size: 15px;
  color: #666;
  margin-bottom: 25px;
}

.custom-modal-button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 10px 40px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  font-size: 16px;
}

.custom-modal-button:hover {
  background-color: #2563eb;
}

/* ----------------- RESPONSIVE ------------------ */
@media (max-width: 992px) {
  .container {
    width: 90%;
    height: auto;
    flex-direction: column;
  }

  .form-container {
    flex-direction: column;
    height: auto;
  }

  .login-box,
  .register-box {
    width: 100%;
    height: auto;
    padding: 30px 20px;
  }

  .welcome-box,
  .WelcomeBack-box {
    display: none;
  }
}

@media (max-width: 600px) {
  .custom-modal {
    width: 95%;
    padding: 20px 15px;
  }

  .custom-modal-content-area {
    padding: 20px;
  }

  .custom-modal-title-text {
    font-size: 18px;
  }

  .custom-modal-description-text {
    font-size: 14px;
  }

  .custom-modal-button {
    width: 100%;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  .custom-modal {
    border-radius: 0;
    height: 100vh;
    max-height: 100%;
  }

  .custom-modal-header-container {
    font-size: 16px;
    padding: 15px;
  }

  .custom-modal-button {
    padding: 12px;
    font-size: 16px;
  }
}
