@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #f5f5f5;
    padding: 0 20px; /* Pastikan ada ruang di sekitar layar pada perangkat kecil */
}
/* HEADER */
header {
  z-index: 2000;
  position: fixed;
  background: #fff;
  top: 0;
  left: 0;
  height: 85px;
  width: 100%;
  padding: 0 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

header .brand img {
  max-height: 70px;
  width: auto;
}

/* LOGIN CARD */
.login-card {
  background: #fff;
  width: 300px;
  padding: 40px;
  margin: 200px auto 0;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  text-align: center;
}

.login-card h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #333;
}

.input-group {
  margin-bottom: 15px;
  text-align: left;
  position: relative;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: #333;
}

.input-group input {
  width: 100%;
  padding: 10px 35px 10px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 14px;
  transition: border-color 0.3s;
}

.input-group input:focus {
  border-color: orange;
  outline: none;
}

.password-group .password-toggle {
  position: absolute;
  right: 10px;
  top: 70%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #999;
}

.password-group .password-toggle i {
  font-size: 18px;
}

.btn {
  width: 100%;
  padding: 10px;
  background: orange;
  color: #fff;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  cursor: pointer;
  transition: background 0.3s;
}

.btn:hover {
  background: darkorange;
}

.preloader {
    display: none; /* Sembunyikan secara default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white;
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.preloader img {
    width: 60px;
    animation: spin 2s linear infinite; /* Efek berputar */
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}