/* Apply 'Poppins' font globally */
body, html {
    font-family: 'Poppins', sans-serif;
    height: 100%;
    margin: 0;
    overflow: hidden; /* Prevent scrolling */
}

/* Set background image and ensure it covers the entire screen */
.background {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-end; /* Align form to the bottom */
    padding-bottom: 30px; /* Adds space between form and bottom of the screen */
    width: 100%;
    overflow: visible; /* Allow overflow for animations */
}
@keyframes glow {
  0% {
      box-shadow:
          0 10px 20px rgba(255, 255, 0, 0.8),
          0 15px 30px rgba(255, 200, 0, 0.8),
          0 5px 15px rgba(255, 255, 255, 0.6);
  }
  50% {
      box-shadow:
          0 15px 30px rgba(255, 255, 0, 1),
          0 20px 40px rgba(255, 200, 0, 1),
          0 8px 20px rgba(255, 255, 255, 0.8);
  }
  100% {
      box-shadow:
          0 10px 20px rgba(255, 255, 0, 0.8),
          0 15px 30px rgba(255, 200, 0, 0.8),
          0 5px 15px rgba(255, 255, 255, 0.6);
  }
}



/* Apply animated shadow effect to the form */
form {
    width: 100%;
    max-width: 500px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    padding: 40px;
    text-align: center;
    position: relative;

    margin-bottom: 30px; /* Mengatur jarak form dari bagian bawah */
    box-shadow:
        0 -5px 20px rgba(255, 255, 0, 1), /* Shadow kuning cerah */
        0 15px 30px rgba(255, 200, 0, 1), /* Shadow oranye cerah */
        0 5px 15px rgba(255, 255, 255, 0.7); /* Glow putih tambahan */;
        backdrop-filter: blur(10px); /* Tambah efek blur background */
        animation: glowEffect 2s infinite; /* Animasi efek menyala */
}

/* Apply the background to the frame */
.frame {
    background: url('img/bg2.jpg') no-repeat center center fixed;
    background-size: cover;
    padding: 20px;
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Input fields */
.form-control {
    width: 100%;
    padding: 12px;
    margin-bottom: 5px;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1.2rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.form-control:focus {
    border-color: #1976d2;
    outline: none;
}

/* Button styling */
.btn-custom {
    background-color: #1976d2;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 10px;
    width: 100%;
    font-size: 1.2rem;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn-custom:hover {
    background-color: #155a9e;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

/* Responsiveness for small devices */
@media (max-width: 768px) {
    form {
        width: 90%;
        padding: 20px;
    }
}

@media (max-width: 480px) {
    form {
        width: 95%;
        padding: 15px;
    }
}
