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

body {
  background: linear-gradient(135deg, #1e3c72, #2a5298);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  backdrop-filter: blur(8px);
}

.wrapper {
  position: relative;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.2);
  width: 800px;
  max-width: 100%;
  display: flex;
  overflow: hidden;
}

.form-container {
  width: 50%;
  padding: 40px;
  z-index: 1;
}

.form-container h2 { margin-bottom: 20px; color: #333; }
.form-container form { display: flex; flex-direction: column; }

.form-container input {
  padding: 12px 15px;
  margin: 10px 0;
  border: 1px solid #ccc;
  border-radius: 10px;
  transition: border 0.3s ease;
}
.form-container input:focus {
  border: 2px solid #2a5298;
  outline: none;
}

.form-container button.submit-btn {
  margin-top: 15px;
  padding: 12px;
  border: none;
  background: linear-gradient(to right, #1e3c72, #2a5298);
  color: white;
  font-weight: bold;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.3s ease;
}
.form-container button.submit-btn:hover {
  background: linear-gradient(to left, #1e3c72, #2a5298);
}

.toggle-container {
  width: 50%;
  height: 100%;
  background: linear-gradient(to bottom right, #1e3c72, #2a5298);
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 20px 0 0 20px;
  z-index: 2;
  transform-origin: left center;
  transition: transform 0.8s cubic-bezier(0.77, 0, 0.175, 1),
              border-radius 0.8s ease-in-out,
              clip-path 0.8s ease-in-out;
  clip-path: ellipse(100% 120% at left center);
}

.wrapper.active .toggle-container {
  transform: translateX(105%) scale(0.95, 1.05);
  border-radius: 0 20px 20px 0;
  clip-path: ellipse(100% 120% at right center);
}

.toggle-container h2 { margin-bottom: 20px; }
.toggle-container p { margin-bottom: 20px; }
.toggle-container button.switch-btn {
  padding: 8px 25px;
  background: transparent;
  border: 2px solid white;
  color: white;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}
.toggle-container button.switch-btn:hover {
  background: rgba(255,255,255,0.2);
}

.forgot-password {
  color: #2a5298;
  margin-top: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: underline;
}

.accept-terms {
  margin: 10px 0 0 0;
  font-size: 0.9rem;
  user-select: none;
}
.accept-terms input { margin-right: 8px; }

.social-login {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 15px;
}
.social-btn {
  width: 45px;
  height: 45px;
  border-radius: 10px;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.3s ease;
}
.social-btn svg { width: 24px; height: 24px; transition: fill 0.3s ease; }
.social-btn.google svg { fill: #db4437; } 
.social-btn.google:hover { background: #db4437; } 
.social-btn.google:hover svg { fill: white; }
.social-btn.facebook svg { fill: #1877f2; } 
.social-btn.facebook:hover { background: #1877f2; } 
.social-btn.facebook:hover svg { fill: white; }
.social-btn.github svg { fill: #333; } 
.social-btn.github:hover { background: #333; } 
.social-btn.github:hover svg { fill: white; }
.social-btn.x svg { fill: #000; } 
.social-btn.x:hover { background: #000; } 
.social-btn.x:hover svg { fill: white; }

.form-container active{
    justify-content: center;
    align-items: center;
    text-align: center;
    transform: translateX(100%);
    transition: all 0.6s ease-in-out;
    z-index: 5;
    clip-path: ellipse(0% 0% at 50% 50%);
    opacity: 0;
    visibility: hidden;
}

@media screen and (max-width: 768px) {
  body {
    align-items: flex-start;
    padding: 20px 0;
  }
  
  .wrapper {
    height: auto;
    flex-direction: column;
    overflow: visible;
  }
  
  .form-container, .toggle-container {
    width: 100%;
    border-radius: 0;
  }

  .toggle-container {
    position: relative;
    clip-path: none;
    transform: none !important;
  }
}

