
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Cairo', sans-serif;
}

body {
  background: linear-gradient(to right, #e0eaff, #fce4ec);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}

/* Left Side */
.left-side {
  flex: 1;
  min-width: 300px;
}

.left-side h1 {
  font-size: 36px;
  color: #673ab7;
  margin-bottom: 20px;
}

.left-side p {
  font-size: 16px;
  margin-bottom: 30px;
  color: #333;
  line-height: 1.6;
}

.features {
  list-style: none;
  font-size: 16px;
  color: #444;
}

.features li {
  margin-bottom: 15px;
}

.features i {
  color: #6a1b9a;
  margin-right: 10px;
}

/* Right Side */
.right-side {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Flip Container */
.form-box-container {
  width: 100%;
  max-width: 350px;
  perspective: 1000px;
}

.form-inner {
  position: relative;
  width: 100%;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  min-height: 360px;
}

.form-box-container.flipped .form-inner {
  transform: rotateY(180deg);
}

.form-box {
  position: absolute;
  width: 100%;
  backface-visibility: hidden;
  background-color: #fff;
  border: 2px solid #9c27b0;
  padding: 60px 30px;
  border-radius: 15px;
  box-shadow: 6px 6px 0 #b39ddb;
  text-align: center;
}
.login-box {
  z-index: 2;
}

.signup-box {
  transform: rotateY(180deg);
}

.form-box h2 {
  color: #6a1b9a;
  margin-bottom: 20px;
}

.form-box input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  background-color: #f3f0ff;
  color: #333;
  font-size: 14px;
}

.form-box input:focus {
  border-color: #9c27b0;
  outline: none;
}

.form-box button {
  padding: 12px;
  width: 60%;
  background-color: #6a1b9a;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s;
}

.form-box button:hover {
  background-color: #4a148c;
}

.signup-text {
  margin-top: 15px;
  font-size: 14px;
  color: #444;
}

.signup-text a {
  color: #6a1b9a;
  font-weight: bold;
  text-decoration: none;
  transition: 0.3s;
}

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

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 20px 10px;
  }

  .container {
    flex-direction: column;
    align-items: center;
    gap: 30px;
    text-align: center;
  }

  .left-side h1 {
    font-size: 28px;
  }

  .form-box {
    padding: 40px 20px;
  }
}

