.slr-container {
  width: 800px;
  height: 500px;
  margin: 50px auto;
  background: white;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  transition: 0.5s ease-in-out;
}

.slr-form-container {
  width: 50%;
  padding: 40px;
  transition: 0.5s ease-in-out;
  height: 100%;
}

.slr-form-container form {
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

.slr-form-container h2 {
  text-align: center;
  margin-bottom: 20px;
  color: #333;
}

.slr-form-container input,
.slr-form-container select {
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  outline: none;
}

.slr-form-container button {
  padding: 12px;
  background: #667eea;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.3s;
}
.slr-form-container button:hover {
  background: #5a67d8;
}

.slr-switcher {
  position: absolute;
  width: 50%;
  height: 100%;
  top: 0;
  right: 0;
  background: linear-gradient(to right, #667eea, #764ba2);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  text-align: center;
  transition: 0.5s ease-in-out;
  padding: 30px;
}

.slr-container.active .slr-switcher {
  right: 50%;
}

.slr-form-container.login {
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
}

.slr-form-container.register {
  position: absolute;
  left: 50%;
  top: 0;
  width: 50%;
}

.slr-container .register {
  display: none;
}
.slr-container.active .register {
  display: block;
}
.slr-container.active .login {
  display: none;
}

#slrSwitchBtn {
  background: white;
  color: #764ba2;
  border: none;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

#slrSwitchBtn:hover {
  background: #f3f3f3;
}
