* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  height: 100vh;
  overflow: hidden;
  background: #effae7ff;
}

.container {
  display: flex;
  height: 100vh;
}

  /* Left Side - Background and Branding */
  .left-side {
    flex: 1;
    position: relative;
    background: linear-gradient(rgba(37, 211, 102, 0.1), rgba(18, 140, 126, 0.2)), 
                url('/whatsapp_bg.jpg');
    background-size: auto;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
  }

.background-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(37, 211, 102, 0.05) 0%, rgba(18, 140, 126, 0.1) 100%);
}

.brand-container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
}

.brand-box {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 60px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.2);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(37, 211, 102, 0.1);
}

.brand-name {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -2px;
}

.whatsapp-text {
  color: #25D366;
}

.bot-text {
  color: #128C7E;
}

.brand-subtitle {
  color: #6b7280;
  font-size: 1.1rem;
  font-weight: 500;
}

.ai-text {
  color: #128C7E;
}

/* Right Side - Login Form */
.right-side {
  flex: 1;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #ffffff;
  padding: 20px 40px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.1);
  width: 100%;
  max-width: 500px;
  border: 1px solid #e8f5e8;
}

.login-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  text-align: center;
}

.login-form {
  margin-bottom: 25px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 15px 20px;
  border: 2px solid #e8f5e8;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
  background: #ffffff;
}

.form-group input:focus {
  outline: none;
  border-color: #25D366;
  box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.1);
}

.form-group input::placeholder {
  color: #9ca3af;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.login-btn:hover {
  background: linear-gradient(135deg, #128C7E 0%, #075E54 100%);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
}

.login-btn:active {
  transform: translateY(0);
}

.register-link {
  text-align: center;
  margin-top: 20px;
}

.register-link p {
  color: #6b7280;
  font-size: 0.95rem;
}

.register-text {
  color: #25D366;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.register-text:hover {
  color: #128C7E;
  text-decoration: underline;
}

.error-message {
  background: #fef2f2;
  color: #dc2626;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #fecaca;
  margin-top: 15px;
  font-size: 0.9rem;
  display: none;
}

.success-message {
  background: #f0fdf4;
  color: #16a34a;
  padding: 12px 16px;
  border-radius: 8px;
  border: 1px solid #bbf7d0;
  margin-top: 15px;
  font-size: 0.9rem;
  display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }
  
  .left-side {
    flex: 1;
    min-height: 40vh;
  }
  
  .right-side {
    flex: 1;
    padding: 20px;
  }
  
  .brand-box {
    padding: 30px 40px;
  }
  
  .brand-name {
    font-size: 2.5rem;
  }
  
  .login-card {
    padding: 30px 25px;
  }
}

@media (max-width: 480px) {
  .brand-name {
    font-size: 2rem;
  }
  
  .brand-subtitle {
    font-size: 1rem;
  }
  
  .login-title {
    font-size: 1.8rem;
  }
}
