/* ==============================
   SISTEM LOGIN
============================== */
.login-overlay {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #fdeef4, #f8d7e6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.login-card {
  background: #fff;
  width: 100%;
  max-width: 400px;
  padding: 36px 32px 28px;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.18);
  box-sizing: border-box;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-logo {
  text-align: center;
  font-size: 28px;
  font-weight: 700;
  color: #c2185b;
  margin-bottom: 4px;
}

.login-subtitle {
  text-align: center;
  font-size: 13px;
  color: #9e6080;
  margin-top: 0;
  margin-bottom: 24px;
}

.login-field {
  margin-bottom: 16px;
}

.login-field label {
  display: block;
  font-size: 13px;
  color: #6a1b4d;
  font-weight: 600;
  margin-bottom: 6px;
}

.login-field input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid #f3c1d9;
  background: #fff8fb;
  font-family: "Poppins", sans-serif;
  font-size: 14px;
  color: #3d0026;
  box-sizing: border-box;
  margin-bottom: 0;
  transition: border-color 0.2s;
}

.login-field input:focus {
  outline: none;
  border-color: #ec407a;
}

.password-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.password-wrapper input {
  padding-right: 42px;
}

.toggle-pass {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: #c2185b;
  padding: 0;
  line-height: 1;
}

.login-error {
  background: #ffe5ef;
  color: #c2185b;
  font-size: 12px;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 14px;
  display: none;
}

.login-error.visible {
  display: block;
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #fff;
  font-family: "Poppins", sans-serif;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  transition:
    opacity 0.2s,
    transform 0.1s;
}

.login-btn:hover {
  opacity: 0.92;
}
.login-btn:active {
  transform: scale(0.98);
}

.login-footer {
  text-align: center;
  font-size: 11px;
  color: #c2185b;
  margin-top: 20px;
  margin-bottom: 0;
}

/* ==============================
   APLIKASI UTAMA
============================== */
body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #fdeef4, #f8d7e6);
  display: flex;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
  min-height: 100vh;
}

.container {
  background: #fff;
  width: 100%;
  max-width: 650px;
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 20px 40px rgba(233, 30, 99, 0.15);
  box-sizing: border-box;
  align-self: flex-start;
}

.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.brand {
  font-size: 26px;
  font-weight: 700;
  color: #c2185b;
}

.logout-btn {
  background: none;
  border: 1.5px solid #e0a0bc;
  color: #c2185b;
  font-family: "Poppins", sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s;
}

.logout-btn:hover {
  background: #fce4ec;
}

label {
  font-size: 14px;
  color: #6a1b4d;
  font-weight: 500;
}

input {
  width: 100%;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 12px;
  border: 1px solid #f3c1d9;
  background: #fff8fb;
  box-sizing: border-box;
}

.result {
  background: #fff0f6;
  padding: 15px;
  border-radius: 15px;
  font-size: 14px;
  color: #6a1b4d;
  margin-top: 10px;
}

.progress {
  height: 12px;
  background: #f8cddd;
  border-radius: 15px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-bar {
  height: 100%;
  background: #ec407a;
  width: 0;
  transition: width 0.4s;
}

.baby-section {
  display: flex;
  justify-content: space-between;
  gap: 4%;
  margin-top: 20px;
}

.baby-img,
.baby-3d {
  width: 48%;
  text-align: center;
}

.baby-img img,
.baby-3d iframe {
  width: 100%;
  height: 300px;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
  object-fit: cover;
}

.description {
  text-align: center;
  font-size: 12px;
  color: #6a1b4d;
  margin-top: 10px;
}

.timeline {
  text-align: center;
  margin-top: 20px;
}

.timeline img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

footer {
  text-align: center;
  margin-top: 25px;
  font-size: 12px;
  color: #c2185b;
}

@media (max-width: 768px) {
  body {
    padding: 14px;
  }

  .container {
    padding: 18px;
    border-radius: 18px;
  }

  .baby-section {
    flex-direction: column;
    gap: 18px;
  }

  .baby-img,
  .baby-3d {
    width: 100%;
  }
}

@media print {
  body {
    background: #fff;
  }

  .container {
    box-shadow: none;
  }
}
