:root {
  --background: #05050b;
  --foreground: #f0f0f8;
  --card: #0a0a14;
  --primary: #c8102e;
  --primary-hover: #ff4d6d;
  --font-family: "Inter", sans-serif;
  --text-muted: rgba(200, 200, 220, 0.6); /* Warna teks samar */
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  overflow-x: hidden;
}
.animated-background {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
}
.orb-1 {
  width: 900px;
  height: 900px;
  background: radial-gradient(
    circle,
    rgba(200, 16, 46, 0.22) 0%,
    rgba(120, 8, 24, 0.1) 40%,
    transparent 70%
  );
  top: -300px;
  right: -200px;
  animation: orb-drift 20s ease-in-out infinite alternate;
}
.orb-2 {
  width: 700px;
  height: 700px;
  background: radial-gradient(
    circle,
    rgba(200, 16, 46, 0.18) 0%,
    rgba(100, 5, 18, 0.08) 40%,
    transparent 70%
  );
  bottom: -200px;
  left: -150px;
  animation: orb-drift 24s ease-in-out infinite alternate;
}
.dot-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.08) 1px,
    transparent 1px
  );
  background-size: 32px 32px;
  opacity: 0.35;
  mask-image: radial-gradient(
    ellipse 80% 80% at 50% 50%,
    black 40%,
    transparent 100%
  );
}
.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 100% 100% at 50% 50%,
    transparent 40%,
    rgba(5, 5, 11, 0.7) 100%
  );
}

.container {
  position: relative;
  z-index: 10;
  display: flex;
  min-height: 100vh;
}
.left-panel {
  display: none;
  width: 65%;
  flex-direction: column;
  padding: 40px 56px;
  position: relative;
}

.divider {
  position: absolute;
  right: 0;
  top: 12%;
  bottom: 12%;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(200, 16, 46, 0.18) 50%,
    transparent 100%
  );
}
.logo-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.logo-image {
  height: 43px; /* matches the original SVG height */
  width: auto; /* keeps aspect ratio */
  object-fit: contain;
}
.logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.12em;
}
.logo-badge {
  color: rgba(200, 16, 46, 0.8);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  background: rgba(200, 16, 46, 0.1);
  border: 1px solid rgba(200, 16, 46, 0.25);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 2px;
}
.illustration-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: float 7s ease-in-out infinite;
}
.geometric-illustration {
  width: 100%;
  max-width: 360px;
  height: auto;
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-15px);
  }
}
.product-info h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}
.product-info .accent-text {
  color: #f21b42;
}
.product-info .hero-subtitle {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 520px;
}
.features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.feature {
  display: flex;
  gap: 16px;
  align-items: center;
}
.feature-icon-box {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  background: rgba(200, 16, 46, 0.06);
  border: 1px solid rgba(200, 16, 46, 0.22);
  border-radius: 10px;
  flex-shrink: 0;
}
.feature-icon {
  color: #f21b42;
  width: 18px;
  height: 18px;
}
.feature h4 {
  font-size: 15px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 3px;
}
.feature span {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.4;
}

.right-panel {
  flex: 1;
  display: flex;
  flex-direction: column; /* Mengubah arah agar footer bisa di bawah */
  align-items: center;
  justify-content: center;
  padding: 24px;
  position: relative; /* Penting untuk footer absolut */
}
.login-card {
  width: 100%;
  max-width: 400px;
  padding: 40px;
  background: rgba(10, 10, 20, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
/* ... card-header ... */
.card-header h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}
.card-header p {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px; /* Meningkatkan jarak header ke form */
}

/* ... social-login styles existing ... */
.social-login {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}
.social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 11px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: 0.2s;
}
.social-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

/* ... divider-text ... */
.divider-text {
  display: flex;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
  color: rgba(200, 200, 220, 0.4);
  font-size: 12px;
  text-transform: uppercase; /* Memastikan semua huruf besar */
}
.divider-text::before,
.divider-text::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.divider-text span {
  padding: 0 10px;
}

/* ... input styles ... */
.input-group {
  margin-bottom: 16px;
}
.input-group label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px; /* Meningkatkan jarak label ke input */
}
.input-wrapper {
  position: relative;
}
.input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(150, 150, 180, 0.5);
  width: 18px;
  height: 18px;
}
.input-wrapper input {
  width: 100%;
  padding: 13px 44px 13px 42px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}
.input-wrapper input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(200, 16, 46, 0.45);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.14);
}

.input-wrapper:focus-within .input-icon {
  color: rgba(200, 16, 46, 0.45);
}

.input-wrapper input.error {
  border-color: rgba(200, 16, 46, 0.6);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.18);
}

.input-wrapper input.success {
  border-color: rgba(34, 197, 94, 0.6);
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.14);
  background: rgba(255, 255, 255, 0.06) !important;
}

#mail-icon.success {
  color: rgb(34, 197, 94);
}

.input-success-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: rgb(34, 197, 94);
  width: 18px;
  height: 18px;
  pointer-events: none;
}

.toggle-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(150, 150, 180, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-msg {
  color: rgba(200, 16, 46, 0.9);
  font-size: 12px;
  margin-top: 6px;
  display: none;
}

/* ... form-options ... */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted); /* Memastikan label samar */
  cursor: pointer;
}
#remember {
  width: 14px;
  height: 14px;
  accent-color: var(--primary);
}
.forgot-password {
  color: var(--primary);
  font-size: 13px;
  text-decoration: none;
  transition: color 0.25s;
}
.forgot-password:hover {
  color: var(--primary-hover);
}

/* ... submit-btn ... */
.submit-btn {
  width: 100%;
  padding: 13px;
  background: var(--primary);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: white;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: 0.2s;
  /* margin-bottom: 32px; Meningkatkan jarak tombol ke pembatas */
}
.submit-btn:hover {
  background: #e01233;
  border-color: #ff4d6d;

  /* Efek Neon */
  box-shadow:
    0 0 12px rgba(255, 30, 80, 0.8),
    0 0 24px rgba(255, 30, 80, 0.7),
    0 0 40px rgba(255, 30, 80, 0.6);

  transform: translateY(-2px);
}
.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.submit-btn .btn-arrow {
  display: inline-block;
  font-size: 18px;
  margin-left: 2px;
  transition: transform 0.25s ease-in-out;
} /* Unicode panah tipis */
.submit-btn:hover .btn-arrow {
  transform: translateX(10px); /* Menggeser panah ke kanan sejauh 5 piksel */
}
.btn-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--foreground);
}
.hidden {
  display: none !important;
}
/* ... create-account ... */
.create-account {
  text-align: center;
  margin-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}
.create-account a {
  color: var(--primary); /* Ganti link agar merah */
  text-decoration: none;
  font-weight: 500;
  transition: color 0.25s;
}
.create-account a:hover {
  color: var(--primary-hover); /* Ganti warna saat hover */
}

/* Teks footer tambahan baru */
.panel-footer-text {
  position: absolute;
  bottom: 160px;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 11px;
  color: rgba(200, 200, 220, 0.3);
  padding: 0 40px;
}
.panel-footer-text a {
  color: var(--text-muted); /* Ganti link agar samar */
  text-decoration: none;
}
.panel-footer-text a:hover {
  text-decoration: underline;
  color: #fff;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  backdrop-filter: blur(4px);
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-6px);
  }
  80% {
    transform: translateX(6px);
  }
}
.shake {
  animation: shake 0.5s ease;
}
@keyframes spin {
  100% {
    transform: rotate(360deg);
  }
}
.spin {
  animation: spin 1s linear infinite;
}

@media (min-width: 1024px) {
  .left-panel {
    display: flex;
  }
}

@media screen and (max-width: 768px) {
  .panel-footer-text {
    bottom: 5px;
  }
}
