body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f3f3f5;
}

.top-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 15px 30px;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position: relative;
}

.logo {
  position: absolute;
  left: 30px;
  height: 40px;
}

.top-bar h1 {
  font-size: 22px;
  font-weight: bold;
  color: #800000;
  text-align: center;
}

.login-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 60px 20px;
}

.login-box {
  display: flex;
  flex-direction: row;
  width: 90%;
  max-width: 1000px;
  background-color: white;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  overflow: hidden;
}

/* Panels */
.left-panel, .right-panel {
  flex: 1;
  min-width: 0;
}

.left-panel {
  position: relative;
}

.bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.welcome-text {
  position: absolute;
  bottom: 20%;
  left: 10%;
  right: 10%;
  background: rgba(255, 255, 255, 0.7);
  color: #800000;
  font-size: 24px;
  font-weight: bold;
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.right-panel {
  padding: 50px;
  background-color: white;
}

.right-panel h2 {
  font-size: 22px;
  margin-bottom: 30px;
  color: #800000;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  padding: 15px;
  border: 2px solid #800000;
  border-radius: 8px;
  font-size: 16px;
}

button {
  background: linear-gradient(to right, #800000, #a52a2a);
  color: white;
  font-size: 16px;
  font-weight: bold;
  padding: 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
}

button:hover {
  opacity: 0.9;
}

.forgot-password {
  text-align: center;
  font-size: 14px;
  margin-top: 10px;
  color: #555;
}

.forgot-password a {
  color: #800000;
  text-decoration: none;
  font-weight: bold;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.signup-redirect {
  text-align: center;
  font-size: 14px;
  margin-top: 20px;
  color: #555;
}

.signup-redirect a {
  color: #800000;
  text-decoration: none;
  font-weight: bold;
}

.signup-redirect a:hover {
  text-decoration: underline;
}

.error {
  color: #e74c3c;
  font-size: 14px;
  margin-top: 5px;
}

/* Responsive styles */
@media (max-width: 768px) {
  .login-box {
    flex-direction: column;
  }

  .left-panel {
    height: 200px;
  }

  .welcome-text {
    font-size: 18px;
    padding: 10px;
    bottom: 10%;
  }

  .right-panel {
    padding: 30px 20px;
  }

  .top-bar h1 {
    font-size: 18px;
  }

  .logo {
    height: 30px;
    left: 15px;
  }

  input[type="text"],
  input[type="password"],
  input[type="email"] {
    font-size: 14px;
    padding: 12px;
  }

  button {
    font-size: 14px;
    padding: 10px;
  }
}

@media (max-width: 480px) {
  .right-panel h2 {
    font-size: 18px;
  }

  .welcome-text {
    font-size: 16px;
  }

  .top-bar h1 {
    font-size: 16px;
  }
}

.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background-color: #e74c3c; /* red */
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  animation: slideIn 0.4s ease, fadeOut 0.5s ease 3s forwards;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeOut {
  to {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.form-row {
  display: flex;
  gap: 24px;
  width: 100%;
  margin-bottom: 20px;
}

.form-group {
  flex: 1;
  min-width: 0;
}

.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: #333;
}

.form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input:focus {
  border-color: #800020; /* Deep maroon */
  box-shadow: 0 0 0 3px rgba(128, 0, 32, 0.1);
  outline: none;
}
/* PASSWORD FIELD FIX */

/* PASSWORD FIELD */

.password-wrapper{
  position: relative;
  width: 100%;
}

.password-wrapper input{
  width: 100%;
  padding: 15px;
  padding-right: 50px;
  border: 2px solid #800000;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
}

.toggle-password{
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #800000;
}

.toggle-password:hover{
  opacity: 0.8;
}

/* Forgot password button */

.forgot-btn{
  display:block;
  width:100%;
  margin-top:10px;
  padding:10px;
  text-align:center;

  border:2px solid #800000;
  border-radius:8px;

  color:#800000;
  text-decoration:none;
  font-weight:600;

  transition:0.25s ease;
}

.forgot-btn:hover{
  background:#800000;
  color:white;
}

/* Prevent width overflow */
input,
button,
.forgot-btn{
    width:100%;
    box-sizing:border-box;
}