@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600;800&family=Montserrat:wght@900&display=swap');

:root {
  --primary-color: #6c5ce7;
  --secondary-color: #a29bfe;
  --dark-purple: #4834d4;
  --soft-bg: #f8f9fd;
}

body.login-page {
  background-color: var(--soft-bg);
  min-height: 100vh;
  margin: 0;
  display: flex;
  font-family: "Poppins", sans-serif;
  overflow-x: hidden;
}

.login-wrapper {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* === SISI KIRI (VISUAL) === */
.login-visual-side {
  flex: 1.2;
  position: relative;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-purple) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
  overflow: hidden;
}

.visual-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
  z-index: 1;
}

.visual-content {
  position: relative;
  z-index: 2;
}

.auth-animation-box {
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5.5rem;
  color: #fff;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.auth-animation-box i {
  animation: bounce 3s infinite ease-in-out;
}

.fw-black { font-weight: 800; letter-spacing: -1px; }

.message-box {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  max-width: 450px;
  margin: 0 auto;
}

.login-form-side {
  flex: 0.8;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 400px;
}

.logo-wrapper-circle {
  width: 85px;
  height: 85px;
  background: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  border: 4px solid var(--soft-bg);
}

.login-logo {
  width: 55px;
  height: auto;
  object-fit: contain;
}

/* FORM STYLING */
.custom-input {
  border: 2px solid #f1f3f9 !important;
  border-radius: 18px !important;
  height: 60px !important;
  background-color: #fcfcff !important;
  transition: all 0.3s;
}

.custom-input:focus {
  border-color: var(--primary-color) !important;
  background-color: #fff !important;
  box-shadow: 0 10px 20px rgba(108, 92, 231, 0.1) !important;
}

.btn-login-submit {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  border: none;
  color: #fff;
  font-weight: 700;
  border-radius: 18px;
  box-shadow: 0 10px 25px rgba(108, 92, 231, 0.3);
  transition: all 0.3s;
  letter-spacing: 0.5px;
}

.btn-login-submit:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(108, 92, 231, 0.4);
}

/* === MOBILE RESPONSIVE OPTIMIZATION === */
@media (max-width: 991px) {
  body.login-page {
    background-color: var(--soft-bg);
  }
  .login-wrapper {
    flex-direction: column;
    padding: 20px;
  }
  .login-form-side {
    background: transparent;
    padding: 0;
    margin-top: 20px;
  }
  .login-box {
    background: #fff;
    padding: 35px 25px;
    border-radius: 40px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.06);
  }
  .auth-animation-box {
    width: 100px;
    height: 100px;
    font-size: 3rem;
    border-radius: 30px;
  }
}

/* ANIMATIONS */
@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.peeking { transform: scale(1.05) rotate(-5deg); opacity: 0.8; }
.error-vibrate { animation: shake 0.4s ease-in-out; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* Hilangkan icon mata bawaan browser (Edge/Chrome/Safari) */
input::-ms-reveal,
input::-ms-clear {
  display: none !important;
}

/* Jika ada icon bawaan dari class Bootstrap tertentu, kita sembunyikan */
.form-floating .eye-toggle {
  cursor: pointer;
  z-index: 5; /* Pastikan di atas input */
  padding: 0 10px;
}

/* Biar posisi icon mata kita pas di tengah kanan input */
.eye-toggle {
  height: 60px; /* Samakan dengan tinggi input */
  display: flex;
  align-items: center;
  margin-right: 5px;
}