* {
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
    margin: 0;
    padding: 0;
  }

body{
    width: 100%;
    background-color: #f5f7fa;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}
.form-card {
    background-color: #fff;
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeIn 1s ease forwards;
    animation-delay: 1s;
}

h2 {
    font-size: 22px;
    font-weight: 600;
    color: #1e1e1e;
    margin-bottom: 20px;
    text-align: center;
}

label {
    font-size: 14px;
    color: #444;
    margin-bottom: 6px;
    display: block;
}

input, select {
    width: 100%;
    padding: 12px 14px;
    margin-bottom: 16px;
    border: 1px solid #ddd;
    border-radius: 12px;
    background-color: #f9fafb;
    font-size: 15px;
    transition: 0.2s ease;
  }

  input:focus,
  select:focus {
    outline: none;
    border-color: #5b76f7;
    background-color: #fff;
    box-shadow: 0 0 0 2px rgba(91, 118, 247, 0.2);
  }

  .submit-btn {
    background-color: #5b76f7;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 12px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: 0.3s ease;
  }

  .submit-btn:hover {
    background-color: #4255d4;
  }

  .info-box {
    display: none;
    grid-template-columns: repeat(4, 1fr);
    text-align: center;
    background-color: #f1f3f7;
    border-radius: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
  }

  .info-box div {
    font-size: 14px;
    color: #333;
  }

  .info-box span {
    font-weight: bold;
    display: block;
    font-size: 16px;
    margin-bottom: 2px;
  }

  #countdown {
    background: #e0ecff;
    padding: 10px;
    border-radius: 10px;
    text-align: center;
    color: #333;
    font-size: 15px;
    margin-bottom: 20px;
  }

  .loading-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    background-color: #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    color: black;
    z-index: 9999;
    bottom: 0;
    transition: opacity 0.5s ease;
}
.loading-text h1{
    color: black;
    font-size: 3.5rem;
    font-weight: bold;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeText 1.5s ease-in-out forwards 1.5s;
}
.loading-text2 p{
    color: black;
    opacity: 0;
    margin-bottom: 10px;
    transform: translateY(20px);
    animation: fadeText 1.5s ease-in-out forwards 1.5s;
}

.logo {
    width: 150px;
    opacity: 0;
    animation: fadeIn 1.5s ease-in-out forwards;
}



/* Gaya tombol saat dikunci */
.submit-btn.locked {
    background-color: #ccc;
    cursor: not-allowed;
    color: #666;
    position: relative;
  }
  
  .submit-btn.locked::before {
    content: '🔒';
    position: absolute;
    left: 15px;
  }
  
  /* Gaya tombol saat aktif */
  .submit-btn.unlocked {
    color: white;
    position: relative;
  }
  
  .submit-btn.unlocked::before {
    content: '✅';
    position: absolute;
    left: 15px;
  }
  
/* Popup Wrapper */
.popup-notif {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
  }
  
  /* Popup Box */
  .popup-content {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    width: 90%;
    max-width: 400px;
    animation: popup-fade 0.3s ease;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  }
  
  .popup-content h3 {
    margin: 15px 0 10px;
    font-size: 24px;
  }
  
  .popup-content p {
    font-size: 16px;
    color: #555;
  }
  
  .popup-content button {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #2ecc71;
    border: none;
    color: white;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.2s;
  }
  
  .popup-content button:hover {
    background-color: #27ae60;
  }
  
  /* Icon Style */
  .popup-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto;
    border-radius: 50%;
    background-size: 50%;
    background-position: center;
    background-repeat: no-repeat;
    background-color: #f1f1f1;
  }
  
  /* Ceklis dan Silang */
  .success-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/845/845646.png'); /* ceklis hijau */
    background-color: #d4edda;
  }
  
  .error-icon {
    background-image: url('https://cdn-icons-png.flaticon.com/512/463/463612.png'); /* silang merah */
    background-color: #f8d7da;
  }
  
  /* Animasi Fade */
  @keyframes popup-fade {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
  }
  
  /* Animasi getar */
@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
  }
  
.shake {
    animation: shake 0.9s;
    border: 2px solid red !important;
}
.invalid {
    animation: shake 0.9s;
    border: 2px solid red !important;
}
  @keyframes fadeIn {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }


@media (max-width: 900px) {
    .loading-container img {
        width: 30%;
    }
}
@media (max-width: 600px) {
    body{
        width: 100%;
        height: 100%;
        background: white;
    }
    form{
        width: 100%;
        height: 100%;
        position: relative;
        justify-content: center;
        align-items: center;
        display: grid;
        padding: 0px;
        margin-top: 0px;
        box-shadow: none;    
        border: none;
    }
    .loading-container img {
        width: 80%;
    }
}