* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, sans-serif;
  background-color: #f8fafc;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  color: #1e293b;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.container {
  display: flex;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 24px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  max-width: 1000px;
  width: 90%;
  min-height: 600px;
  position: relative;
}

.form-section {
  flex: 1;
  padding: 60px 50px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: all 0.6s ease;
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.image-section {
  flex: 1;
  background: #0f172a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
  transition: all 0.6s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  animation: slideInRight 0.8s ease;
}

.image-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://images.unsplash.com/photo-1451187580459-43490279c0fa?q=80&w=1744&auto=format&fit=crop");
  background-size: cover;
  background-position: center;
  opacity: 0.4;
  z-index: 0;
}

.image-content {
  z-index: 2;
  padding: 40px;
  position: relative;
}

.image-content h2 {
  font-size: 2.5rem;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.image-content p {
  font-size: 1.1rem;
  line-height: 1.6;
  opacity: 0.8;
  color: #cbd5e1;
}

.form-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0f172a;
  text-align: center;
  letter-spacing: -0.02em;
}

.form-subtitle {
  color: #64748b;
  text-align: center;
  margin-bottom: 40px;
  font-size: 1rem;
  line-height: 1.5;
}

.form-group {
  position: relative;
  margin-bottom: 24px;
  height: 100%;
}

.form-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  transition: color 0.3s ease;
  z-index: 1;
}

.form-control {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fefefe;
  outline: none;
  font-weight: 500;
}

.form-control:focus {
  border-color: #3b82fe;
  background: white;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.2);
  transform: translateY(-2px);
}

.form-control:focus + i {
  color: #3b82fe;
  transform: translateY(-50%) scale(1.1);
}

.btn-primary {
  width: 100%;
  background: #3b82fe;
  color: white;
  padding: 16px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
}

.btn-primary:hover {
  background: #2563eb;
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: none;
  transform: none;
}

.social-title {
  text-align: center;
  color: #64748b;
  margin-bottom: 20px;
  position: relative;
  font-weight: 500;
  margin-top: 10px;
}

.social-title::before,
.social-title::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background: #e2e8f0;
}

.social-title::before {
  left: 0;
}

.social-title::after {
  right: 0;
}

.social-buttons {
  display: flex;
  gap: 12px;
}

.social-btn {
  flex: 1;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  background: white;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
}

.social-btn:hover {
  border-color: #cbd5e1;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.social-btn.google {
  color: #ea4335;
}

.social-btn.facebook {
  color: #1877f2;
}

.social-btn.twitter {
  color: #1da1f2;
}

.form-switch {
  text-align: center;
  margin-top: 32px;
  color: #64748b;
  font-weight: 500;
}

.form-switch a {
  color: #3b82fe;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.form-switch a:hover {
  color: #2563eb;
}

.forgot-password {
  text-align: right;
  margin-top: 12px;
}

.forgot-password a {
  color: #3b82fe;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password a:hover {
  color: #2563eb;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.form-section {
  animation: slideInLeft 0.8s ease;
}

.image-section {
  animation: slideInRight 0.8s ease;
}

/* Hidden Forms */
.form-container {
  display: none;
}

.form-container.active {
  display: block;
  animation: fadeIn 0.6s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.checkbox-group {
  display: flex;
  align-items: flex-start;
  margin-bottom: 24px;
  font-size: 0.9rem;
  color: #64748b;
  line-height: 1.5;
}

.checkbox-group input[type="checkbox"] {
  margin-right: 12px;
  margin-top: 2px;
  transform: scale(1.2);
  accent-color: #3b82fe;
}

.loading {
  display: none;
}

.loading.show {
  display: inline-block;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.form-control.error {
  color: #ef4444;
  background-color: #fef2f2;
}

.form-control.success {
  color: #10b981;
  background-color: #f0fdfa;
}

/* Floating Shapes */
.floating-shapes {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.floating-shapes::before,
.floating-shapes::after {
  background: rgba(255, 255, 255, 0.1);
}

.floating-shapes::before {
  content: "";
  position: absolute;
  width: 150px;
  height: 150px;
  top: -10px;
  right: -10px;
  background: linear-gradient(to right, #ff758c, #ff7eb3);
  border-radius: 50%;
  animation: float 6s ease-in-out infinite;
  z-index: 0;
  filter: blur(30px);
  /* left: 10%;
  animation-delay: 0; */
}

.floating-shapes::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  bottom: -10%;
  left: -10%;
  background: linear-gradient(to right, #4facfe, #00f2fe);
  border-radius: 50%;
  animation: float 8s ease-in-out infinite reverse;
  z-index: 0;
  filter: blur(40px);
  /* animation-delay: 3s; */
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }
}

.form-control:focus {
  animation: focusPulse 0.5s ease;
}

@keyframes focusPulse {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.02);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    max-width: 400px;
    margin: 20px;
    border-radius: 20px;
  }

  .image-section {
    min-height: 150px;
    padding: 20px;
    order: -1;
  }

  .floating-shapes {
    display: none;
  }

  .form-section {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 2rem;
  }

  .image-content h2 {
    font-size: 2rem;
  }

  .social-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .container {
    margin: 10px;
    width: 95%;
  }

  .form-section {
    padding: 20px 10px;
  }

  .form-title {
    font-size: 1.8rem;
  }
}
