* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #f8f9fc;
}

.container {
  display: flex;
  width: 900px;
  height: 550px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.left-side {
  background-color: #1f1b4e;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  flex-direction: column;
  padding: 30px;
}

.left-side img {
  width: 250px;
  margin-bottom: 20px;
}

.left-side h2 {
  font-size: 1.8rem;
  background-color: #2b2670;
  padding: 10px 25px;
  border-radius: 10px;
  color: #fff;
}

.right-side {
  background-color: #ffffff;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-box {
  width: 80%;
  max-width: 320px;
}

.login-box h2 {
  color: #000;
  margin-bottom: 25px;
  text-align: left;
}

label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  color: #333;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 15px;
  outline: none;
  font-size: 0.95rem;
}

.remember {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
}

.remember input {
  margin-right: 8px;
}

.login-btn {
  width: 100%;
  padding: 10px;
  background-color: #2b2670;
  border: none;
  color: #fff;
  font-size: 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

.login-btn:hover {
  background-color: #1f1b4e;
}

.register-link {
  text-align: right;
  margin-top: 10px;
}

.register-link a {
  color: #2b2670;
  text-decoration: none;
  font-size: 0.85rem;
}

.register-link a:hover {
  text-decoration: underline;
}

.right-side {
  background-color: #ffffff;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Admin icon styling */
.admin-icon {
  position: absolute;
  top: 20px;
  right: 25px;
  background-color: #f7f7f7;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  transition: 0.3s;
}

.admin-icon:hover {
  background-color: #1f1b4e;
  transform: scale(1.05);
}
/* Error popup styling */
.error-popup {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff4d4d;
    color: #fff;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 0.95rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    opacity: 1;
    transition: opacity 0.5s ease;
    z-index: 9999;
}

