* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  background-image: url(../../assets/deskworkspace.jpg);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

.login-container {
  display: flex;
  background: #fff;
  width: 1200px;
  height: 730px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* LEFT SIDE */
.login-left {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #ffffff;
  padding: 40px;
}

.login-box {
  width: 100%;
  max-width: 380px;
  transform: translateY(10px);
}

.logo {
  width: 200px;
  display: block;
  margin: 0 auto 10px;
  margin-top: -120px;
}

h2 {
  font-size: 30px;
  text-align: center;
  font-weight: 600;
  color: #0a0a23;
  margin-bottom: 15px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  font-size: 14px;
  color: #070707;
  margin-bottom: 6px;
}

.input-group input {
  width: 100%;
  padding: 16px 14px;
  border: 1px solid #000000;
  border-radius: 10px;
  font-size: 14px;
  outline: none;
  transition: all 0.3s;
}

.input-group input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(51, 66, 88, 0.2);
}

.options {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 25px;
}

.options a {
  text-decoration: none;
  color: #555;
}

.options span {
  color: #2563eb;
  font-weight: 500;
}

.btn-login {
  width: 100%;
  background-color: #0a0a23;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
}

.btn-login:hover {
  background-color: #2563eb;
}

/* RIGHT SIDE */
.login-right {
  flex: 1;
  background-color: #afcdff;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-right img {
  width: 80%;
  height: auto;
}
    .error {
      border: 2px solid #d93025 !important;
      background-color: #fff8f8;
      animation: shake 0.2s ease-in-out 0s 2;
    }

    .error-message {
      color: #d93025;
      font-size: 13px;
      margin-top: 4px;
      display: none;
    }

    .error-message.active {
      display: block;
    }

    /* Animasi getar */
    @keyframes shake {
      0% { transform: translateX(0); }
      25% { transform: translateX(-4px); }
      50% { transform: translateX(4px); }
      75% { transform: translateX(-4px); }
      100% { transform: translateX(0); }
    }

    /* Tombol kembali */
    .btn-back {
      width: 100%;
      background-color: #fff;
      color: #0a0a23;
      border: 2px solid #0a0a23;
      padding: 12px;
      border-radius: 8px;
      font-size: 15px;
      font-weight: 500;
      cursor: pointer;
      transition: all 0.3s;
      margin-top: 25px;
    }

    .btn-back:hover {
      background-color: #0a0a23;
      color: #fff;
    }

    /* Animasi keluar halaman */
    .slide-out {
      transform: translateX(100%);
      opacity: 0;
      transition: transform 0.6s ease, opacity 0.6s ease;
    }