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

body {
  display: flex;
  height: 100vh;
  background: #f4f5f7;
  overflow: hidden;
}

.container {
  display: flex;
  width: 100%;
  height: 100%;
}

/* ===== BAGIAN KIRI (SLIDESHOW 6 GAMBAR) ===== */
.left {
  flex:1;
  position:relative;
  background-size:cover;
  background-position:center;
  transition:opacity 1s ease;
  will-change: transform, opacity;
}

/* animasi */
.anim-fade { animation:fade 1s ease; }
.anim-zoom { animation:zoom 1s ease; }
.anim-slide { animation:slide 1s ease; }
.anim-rotate { animation:rotate 1s ease; }
.anim-blur { animation:blurIn 1s ease; }

@keyframes fade {
  from{opacity:0}
  to{opacity:1}
}

@keyframes zoom {
  from{transform:scale(1.2);opacity:0}
  to{transform:scale(1);opacity:1}
}

@keyframes slide {
  from{transform:translateX(80px);opacity:0}
  to{transform:translateX(0);opacity:1}
}

@keyframes rotate {
  from{transform:rotate(-8deg) scale(1.2);opacity:0}
  to{transform:rotate(0) scale(1);opacity:1}
}

@keyframes blurIn {
  from{filter:blur(10px);opacity:0}
  to{filter:blur(0);opacity:1}
}

.left::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.25);
  animation: fadeEffect 25s infinite ease-in-out;
}

@keyframes fadeEffect {
  0%, 16%, 33%, 50%, 67%, 84%, 100% { opacity: 0.25; transform: scale(1); }
  8%, 24%, 41%, 58%, 75%, 92% { opacity: 0.4; transform: scale(1.05); }
}

/* ===== BAGIAN KANAN ===== */
.right {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #ffffff;
  padding: 40px;
  position: relative;
  overflow-y: auto;
}

.login-box {
  width: 100%;
  max-width: 360px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  text-align: center;
  margin-bottom: 80px;
}

.login-box h2 {
  margin-bottom: 25px;
  color: #333;
}

/* ===== INFO BOX ===== */
.info-box {
  display: flex;
  align-items: flex-start;
  background: #e3f2fd;
  color: #0d47a1;
  border-left: 4px solid #2196f3;
  border-radius: 8px;
  padding: 12px 15px;
  margin-bottom: 20px;
  text-align: left;
  font-size: 14px;
  line-height: 1.4;
}

.info-box i {
  font-size: 18px;
  margin-right: 10px;
  color: #1976d2;
  margin-top: 2px;
}

/* ===== INPUT FLOATING LABEL ===== */
.input-group {
  position: relative;
  margin: 20px 0;
}

.input-group input {
  width: 100%;
  padding: 14px 12px;
  border: 1px solid #e9e9e9;
  border-radius: 8px;
  outline: none;
  font-size: 15px;
  color: #333;
  transition: border-color 0.3s;
  background: none;
}

.input-group label {
  position: absolute;
  left: 14px;
  top: 14px;
  color: #555;
  font-size: 15px;
  background: #fff;
  padding: 0 5px;
  pointer-events: none;
  transition: 0.3s ease;
}

.input-group input:focus {
  border-color: #1565c0;
}

.input-group input:focus + label,
.input-group input:not(:placeholder-shown) + label {
  top: -8px;
  left: 10px;
  font-size: 12px;
  color: #1565c0;
}

/* ===== ICON SHOW/HIDE PASSWORD ===== */
.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 18px;
  color: #777;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #1565c0;
}

/* ===== TOMBOL MASUK ===== */
.login-box button {
  width: 100%;
  padding: 12px;
  border: none;
  background: #1976d2;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-box button:hover { 
  background: #0d47a1; 
}

/* ===== SPINNER ===== */
.login-box button.loading {
  background: #0d47a1;
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.8;
}

.spinner {
  border: 3px solid rgba(255,255,255,0.3);
  border-top: 3px solid white;
  border-radius: 50%;
  width: 16px;
  height: 16px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ===== PEMBATAS ===== */
.divider-wrapper {
  position: relative;
  width: 100%;
  margin: 25px 0 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.divider-wrapper::before,
.divider-wrapper::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ddd;
  margin: 0 10px;
}

.divider-text {
  font-size: 14px;
  color: #555;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

/* ===== SOSIAL MEDIA ===== */
.social {
  display: flex;
  justify-content: center;
  gap: 25px;
  margin-top: 5px;
}

.social a {
  font-size: 30px;
  transition: all 0.3s ease;
  text-decoration: none;
}

.social a.tiktok { color: #000; }
.social a.instagram { color: #8a3ab9; }

.social a:hover {
  color: #1976d2;
  transform: translateY(-6px) scale(1.1);
  text-shadow: 0 3px 6px rgba(0,0,0,0.15);
}

/* ===== FOOTER ===== */
footer {
  text-align: center;
  width: 100%;
  font-size: 14px;
  color: #888;
  margin-top: 50px;
  white-space: nowrap;
}

footer a {
  color: #0d47a1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

footer a:hover { 
  color: #1976d2; 
}

/* ===== RESPONSIVE ===== */
@media (max-width: 850px) {
  body {
    flex-direction: column;
    height: auto;
    overflow-y: auto;
  }

  .container {
    flex-direction: column;
    height: auto;
  }

  .left {
    width: 100%;
    min-height: 220px;
    transform: translateZ(0);
  }

  .left::after { display: none; }

  .right { padding: 20px; }

  .login-box {
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  }

  footer {
    font-size: 9.5px;
    margin-top: 7px;
    padding: 0 5px;
    white-space: nowrap;
  }
}

/* ===== VALIDASI INPUT ===== */
.input-group input {
  border: 2px solid #ddd;
  transition: border-color 0.3s;
}

.input-group input.error {
  border-color: #e53935;
}

.input-group input.success {
  border-color: #2e7d32;
}

/* ===== POPUP ACCEPT KEREN ===== */
.accept-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(6px);
  background: rgba(0,0,0,0.55);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
  animation: fadeIn .4s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.accept-box {
  width: 90%;
  max-width: 420px;
  background: #ffffff;
  border-radius: 15px;
  padding: 25px;
  text-align: center;
  animation: slideUp .4s ease;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

@keyframes slideUp {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.accept-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 10px;
}

.accept-text {
  font-size: 16px;
  margin-bottom: 20px;
  color: #333;
}

.accept-btn {
  background: #0084ff;
  color: #fff;
  padding: 12px 24px;
  font-size: 17px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-weight: 700;
  transition: 0.2s;
}

.accept-btn:hover {
  background: #006fd1;
}

.reject-btn {
  background: #eee;
  color: #444;
  padding: 10px 24px;
  font-size: 15px;
  border-radius: 10px;
  margin-top: 10px;
  border: none;
  cursor: pointer;
  width: 100%;
  font-weight: 600;
  transition: 0.2s;
}

.reject-btn:hover {
  background: #ddd;
}
