/* Reset dasar */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: #f5f7ff;
  font-family: 'Poppins', sans-serif;
  overflow-x: hidden;
  height: 100vh;
  font-weight: 400;
}

/* Wrapper utama */
.background-wrapper {
  position: relative;
  min-height: 100vh;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
}

/* Background images */
.bg-left, .bg-right {
  position: absolute;
  z-index: -1;
  height: 100vh;
  object-fit: cover;
}

.bg-left {
  top: 0;
  left: 0;
}

.bg-right {
  top: 0;
  right: 0;
}

/* Form Card */
main {
  background-color: #ffffff;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  padding: 40px 30px;
  max-width: 400px;
  width: 100%;
  text-align: center;
  z-index: 1;
}

/* Title */
main h1 {
  font-size: 2rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
}

/* Input Fields */
form input {
  width: 100%;
  padding: 14px 18px;
  margin-bottom: 14px;
  border-radius: 20px;
  border: none;
  background-color: #ffffff;
  font-size: 14px;
  font-family: 'Poppins', sans-serif;
  font-weight: 500;
  color: #4b5563;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

form input::placeholder {
  color: #9ca3af;
  font-weight: 400;
}

form input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.25);
}

/* Button */
form button {
  width: 100%;
  padding: 14px;
  background-color: #2c3273;
  color: white;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-family: 'Poppins', sans-serif;
}

form button:hover {
  background-color: #1f245e;
  transform: translateY(-2px);
}

/* Login Text */
p {
  margin-top: 16px;
  font-size: 0.9rem;
  color: #4b5563;
  font-weight: 400;
  font-family: 'Poppins', sans-serif;
}

p a {
  color: #d46a0f;
  text-decoration: none;
  font-weight: 500;
}

p a:hover {
  text-decoration: underline;
}

/* Google Login */
.google-login {
  margin-top: 1rem;
  text-align: center;
}

.google-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #f3f4f6;
  color: #374151;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  border: 1px solid #d1d5db;
  transition: background-color 0.2s ease;
}

.google-btn img {
  width: auto; 
  height: 20px; 
  margin-right: 0.5rem;
  object-fit: contain;
}

.google-btn:hover {
  background-color: #e5e7eb; 
}

/* Google Signup */
.google-signup {
  margin-top: 1rem;
  text-align: center;
}

/* Notification Success */
.notif-success {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #d1fae5;
    border: 1px solid #34d399;
    color: #065f46;
    border-radius: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    font-size: 0.92em;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(52, 211, 153, 0.08);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-down 0.5s;
    min-height: 36px;
}

.icon-success {
    margin-right: 0.5rem;
}

/* Notification Error */
.notif-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff4f4;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 7px 12px;
    margin-bottom: 18px;
    font-size: 0.92em;
    box-shadow: 0 2px 8px rgba(252, 165, 165, 0.08);
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    animation: fade-in-down 0.5s;
    min-height: 36px;
}

.notif-error-icon {
    font-size: 1.15em;
    margin-top: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

.notif-error-text {
    margin: 0;
    line-height: 1.4;
    font-weight: 500;
    letter-spacing: 0.01em;
    display: flex;
    align-items: center;
}

@keyframes fade-in-down {
    from { opacity: 0; transform: translateY(-10px);}
    to { opacity: 1; transform: translateY(0);}
}

/* Responsive - Mobile */
@media (max-width: 480px) {
  .background-wrapper {
    padding: 1vw;
  }
  main {
    margin-top: 3vh;
    padding: 12vw 3vw;
    max-width: 99vw;
    border-radius: 18px;
  }
  main h1 {
    font-size: 2.2rem;
    margin-bottom: 26px;
  }
  form input {
    padding: 20px 18px;
    font-size: 1.25rem;
    border-radius: 20px;
  }
  form button {
    padding: 20px;
    font-size: 1.18rem;
    border-radius: 20px;
  }
  .notif-success,
  .notif-error {
    font-size: 1.15em;
    padding: 12px 12px;
  }
  .google-btn {
    font-size: 1.15rem;
    padding: 1rem 1.4rem;
    border-radius: 0.6rem;
  }
  .google-btn img {
    height: 26px;
    margin-right: 0.6rem;
  }
  p {
    font-size: 1.1rem;
  }
}

/* Responsive background images */
@media (max-width: 768px) {
  .bg-left, .bg-right {
    width: 30vw;
    max-width: 120px;
    min-width: 60px;
    height: 60vw;
    min-height: 100px;
    max-height: 200px;
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .background-wrapper {
    padding: 4vw;
  }

  main {
    margin-top: 2vh;
    padding: 6vw 4vw;
    max-width: 92vw;
    border-radius: 16px;
  }

  main h1 {
    font-size: 1.6rem;
    margin-bottom: 20px;
  }

  form input {
    padding: 12px 16px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  form button {
    padding: 12px;
    font-size: 0.95rem;
    border-radius: 14px;
  }

  .google-btn {
    font-size: 0.95rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
  }

  .google-btn img {
    height: 20px;
    margin-right: 0.5rem;
  }

  p {
    font-size: 0.9rem;
  }

  .notif-success,
  .notif-error {
    font-size: 0.9rem;
    padding: 10px 10px;
  }
}
