* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Atur background halaman */
body {
    font-family: Arial, sans-serif;
    background: url('website/assets/aset1.png') no-repeat center center fixed;
    background-size: cover;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Container form login */
.login-container {
    background: rgba(255, 255, 255, 0.1); /* transparan */
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    width: 100%;
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

body.loaded .login-container {
  opacity: 1;
  transform: none;
}

/* Judul login */
.login-container h2 {
    text-align: center;
    margin-top: 15px;
    margin-bottom: 15px; /* Diperpendek jarak ke Username */
    font-size: 25px; /* Tetap proporsional */
}

/* Form group */
.form-group {
    margin-bottom: 20px;
}

/* Label */
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.login-container label,
.login-container p,
.login-container h2,
.form-group input,
.header-login .instansi-text {
    color: white !important;
}

/* Input */
.form-group input {
     width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    font-size: 14px;
    color: white;
    transition: border-color 0.3s ease;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.form-group input:focus {
    outline: none;
    border-color: #66afe9;
}

/* Tombol login */
.btn-login {
    width: 100%;
    padding: 12px;
    background: rgba(245, 245, 245, 0.9);
    border: none;
    color: #333;
    font-weight: bold;
    font-size: 16px;
    border-radius: 30px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: white;
}

/* Header login dengan logo kiri dan teks kanan */
.header-login {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0px;
    margin-bottom: 10px; /* Diperpendek jarak ke teks Login */
    text-align: left;
    flex-direction: column; /* Masih vertikal */
}

.header-login .logo-esdm {
    width: 100px; /* Ukuran sedikit lebih kecil */
    height: auto;
    margin-bottom: 0px; /* Diperpendek jarak ke teks */
}

.header-login .instansi-text {
    font-family: Arial, sans-serif;
    font-size: 14px; /* Diperbesar sedikit */
    font-weight: bold;
    line-height: 1.4;
    text-align: center;
}

/* Teks link login */
.login-container p {
    text-align: center;
    font-size: 14px;
    margin-top: 15px;
    color: #333333;
    width: 100%;              /* Tambahkan agar isi <p> tidak keluar kontainer */
    box-sizing: border-box;   /* Pastikan padding/border dihitung dalam lebar */
    word-wrap: break-word;    /* Antisipasi jika ada link panjang */
}

.login-container p a {
    color: #007BFF;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
    word-break: break-word;   /* Cegah link panjang merusak layout */
}

.login-container p a:hover {
    color: #0056b3;
}

footer {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  font-weight: bold;
}

.fixed-footer {
  position: fixed;
  bottom: 10px;     /* Jarak dari bawah */
  right: 15px;      /* Jarak dari kanan */
  z-index: 1000;    /* Pastikan berada di atas elemen lain */
}

.error-message {
    background-color: #e74c3c;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
}

.success-message {
    background-color: #1eb100;
    color: white;
    padding: 12px;
    border-radius: 6px;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    animation: fadeIn 0.5s ease-in-out;
}

.error-message,
.success-message {
    box-sizing: border-box;
    width: 100%;
}

/* Masuk Sebagai Tamu */
.btn-guest {
    display: block;
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: white;
    font-weight: bold;
    font-size: 15px;
    border-radius: 30px;
    text-align: center;
    margin-top: 18px; /* jarak diperbesar */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    text-decoration: none; /* hilangkan underline */
    transition: background 0.3s ease, border-color 0.3s ease;
}

.btn-guest:hover {
    background: rgba(255, 255, 255, 0.35);
    border-color: rgba(255, 255, 255, 0.6);
    text-decoration: none; /* pastikan tetap tidak ada underline */
}



/* Efek animasi (opsional) */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
  html, body {
    height: 100vh;      /* Pakai tinggi viewport penuh */
    overflow: hidden;   /* Sembunyikan scroll */
    position: fixed;    /* Kunci posisi supaya tidak geser */
    width: 100%;
  }
}
