body {
    background-image: url("../assets/raiden.png");
    background-size: contain;
  }
  
  body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.8);
    /* Menempatkan lapisan ini di belakang semua konten lain. */
    z-index: -1;
}

.form-container {
    background-color: #112240;
    padding: 2.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 500px;
    margin: 30px auto;
    height: 500px;
}

h1 {
    color: #e6f1ff;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.8rem;
}

.form-group {
    margin-bottom: 3rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #a8b2d1;
}

.input-field {
    width: 100%;
    padding: 0.75rem;
    background-color: #233554;
    border: 1px solid #303c55;
    border-radius: 5px;
    color: #e6f1ff;
    font-size: 1rem;
    /* Memastikan padding dan border termasuk dalam total lebar elemen. */
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #64ffda;
    box-shadow: 0 0 0 3px rgba(100, 255, 218, 0.3);
}

.submit-button {
    width: 100%;
    padding: 0.85rem;
    background-color: #64ffda;
    color: #0a192f;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-button:hover {
    background-color: #52e6c8;
}

.submit-button:disabled {
    background-color: #303c55;
    color: #8892b0;
    /* Mengubah kursor untuk menandakan tombol tidak bisa diklik. */
    cursor: not-allowed;
    opacity: 0.7;
}

/* Gaya hover hanya berlaku jika tombol TIDAK dalam kondisi disabled. */
.submit-button:hover:not(:disabled) {
    opacity: 0.8;
}

.form-link {
    text-align: center;
    margin-top: 3rem;
    font-size: 0.9rem;
}

.form-link a {
    color: #64ffda;
    text-decoration: none;
    font-weight: 500;
}

.form-link a:hover {
    text-decoration: underline;
}

.popup-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    font-weight: 500;
    z-index: 9999;
    /* Menjalankan animasi 'slideIn' saat elemen muncul. */
    animation: slideIn 0.3s ease-out forwards;
}

.popup-notification.success {
    background-color: #27ae60;
    color: #e6f1ff;
}

.popup-notification.error {
    background-color: #c0392b;
    color: #e6f1ff;
}

/* Mendefinisikan keyframe untuk animasi. */
@keyframes slideIn {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
}

@media (max-width: 480px) {
    .form-container {
      padding: 2rem;
    }
    h1 {
      font-size: 1.6rem;
    }
}