/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #f4f4f4;
  color: #7b7b7b;
  font-size: 13px;
}

/* Layout */
.login-wrapper {
  display: flex;
  height: 100vh;
  width: 100%;
}

.login-left {
  flex: 0.20;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  flex-direction: column;
  padding: 30px;
  min-width: 380px;
}

.login-right {
  flex: 0.80;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #f5e6df;
  padding: 20px;
}

.login-right .login-image {
  max-width: 90%;
  max-height: 80%;
  object-fit: contain;
}

/* Container */
.container {
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
}

h2 {
  margin-bottom: 15px;
  font-size: 16px;
  font-weight: normal;
}
.img-logo {
  max-width: 70%;
  height: auto;
  display: block;
  margin: 0 auto 40px;  
}

form {
    display: none;
}

form.active {
    display: block;
}

label {
    font-size: 12px;
    font-weight: normal;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
    margin-bottom: 10px;
}

.form-group input {
  padding: 10px 35px;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding-right: 36px;
  font-size: 13px;
  font-weight: normal;
}

.form-group i {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #ccc;
}

.form-group .toggle-password {
    right: 10px; /* Posisi di sisi kanan input */
    left: auto; /* Pastikan tidak mengikuti default */
    cursor: pointer;
    z-index: 1; /* Pastikan di atas input */
}

.btn {
  width: 100%;
  background-color: #fc5520;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  font-size: 14px;
  margin-top: 20px;
}

.btn:hover {
  background-color: #e04412;
}

.switch {
  margin-top: 12px;
  font-size: 13px;
  text-align: center;
}

.switch a {
  color: #fc5520;
  font-weight: 500;
  text-decoration: none;
}

.switch a:hover {
  text-decoration: underline;
}

/* Border merah saat input kosong */
.input-error {
    border: 2px solid red;
}

.alert-danger {
    position: fixed;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #f8d7da;
    color: #721c24;
    padding: 5px 20px;
    border: 1px solid #f5c6cb;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    z-index: 1000;
    opacity: 0;
    animation: fadeInOut 4s, bounce 0.5s;
}

@keyframes fadeInOut {
    0% {
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-4px);
    }
    60% {
        transform: translateX(-50%) translateY(-2px);
    }
}

/* Media Query untuk Tampilan Mobile */
@media (max-width: 1023px) {
    .login-wrapper {
        flex-direction: column;
    }

.login-left {
  flex: 1;
}

.login-right {
  display: none;
}
}