@import url("https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap");
* {
  font-family: "Poppins", sans-serif;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(to top right, #a18cd1, #fbc2eb);
}
.container {
  position: relative;
  width: 850px;
  height: 550px;
  background-color: aliceblue;
  margin: 20px;
  border-radius: 30px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
}
.container h1 {
  font-size: 36px;
  margin: -10px 0px;
}
.container p {
  font-size: 14.5px;
  margin: 15px 0px;
}
.form-box {
  width: 50%;
  height: 100%;
  position: absolute;
  display: flex;
  align-items: center;
  text-align: center;
  color: #333;
  padding: 30px;
}
.form-box.login{
  right: 0;
  display: flex;
  justify-content: center;
}

.form-box.register{
  display: flex;
  justify-content: center;
}
.input-box {
  position: relative;
  margin: 20px 0;
}
.input-box input {
  width: 100%;
  padding: 10px 50px 10px 10px;
  background-color: #eee;
  border-radius: 8px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #333;
  font-weight: 500;
}

.input-box input::placeholder {
  color: #888;
  font-weight: 400;
}
.input-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 20px;
}
.input-box .toggle-password {
  cursor: pointer;
}
.input-box .toggle-password:hover {
  color: #4893e3;
  transform: translateY(-50%) scale(1.15);
}
.input-box .toggle-password.clicked {
  color: #480ada;
  transform: translateY(-50%) scale(0.9);
}
.forget-link {
  margin: -15px 0px 15px;
}
.forget-link a {
  font-size: 14.5px;
  color: #333;
}
.btn {
  width: 100%;
  height: 48px;
  
  background-color: #480ada;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border: none;
  outline: none;
  cursor: pointer;
  font-size: 16px;
  color: #fff;
  font-weight: 600;
}
input[type="submit"]:hover{
  background-color: #4e7bf5;
  color: white;
}
.toggle-panel {
  background-color:#480ada;
  position: absolute;
  width: 50%;
  height: 100%;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.toggle-panel.right{
  right: 0;
  border-top-left-radius: 150px;
  border-bottom-left-radius: 150px;
}
.toggle-panel.left{
  border-top-right-radius: 150px;
  border-bottom-right-radius: 150px;
}
.toggle-panel p {
  margin-bottom: 20px;
}
.toggle-panel .btn {
  width: 160px;
  height: 46px;
  background: transparent;
  border: 2px solid rgb(222, 209, 209);
  color: rgb(222, 209, 209);
  box-shadow: none;
}
.toggle-panel .btn:hover {
  border: 2px solid #fff;
  color: #fff;
}

.error-message {
  background: rgba(255, 0, 0, 0.1);
  color: #d8000c;
  border: 1px solid #d8000c;
  border-radius: 8px;
  padding: 8px;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.error-message.show {
  opacity: 1;
  transform: translateY(0);
}

.success-message {
  background: rgba(0, 128, 0, 0.1);
  color: #006400;
  border: 1px solid #006400;
  border-radius: 8px;
  padding: 8px;
  margin-top: 10px;
  font-size: 14px;
  opacity: 0;
  transform: translateY(-5px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.success-message.show {
  opacity: 1;
  transform: translateY(0);
}
