* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(
    135deg,
    rgba(129, 20, 20, 0.94) 0%,
    rgb(189, 116, 116) 100%
  );
  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: center;
}

.login-container {
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  width: 100%;
  max-width: 900px;
  min-height: 600px;
}

.logo-section {
  background: linear-gradient(
    135deg,
    rgba(59, 9, 12, 0.5) 0%,
    rgb(59, 17, 17) 100%
  );
  color: white;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex: 1;
}

.logo {
  width: 200px;
  height: 200px;
  box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.4);
  object-fit: contain;
  margin-bottom: 20px;
  background: rgb(237, 236, 163);
  border-radius: 50%;
  padding: 20px;
}

.logo-section h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  font-weight: 700;
}

.logo-section p {
  font-size: 1.1rem;
  opacity: 0.9;
}

.form-container {
  flex: 1;
  padding: 60px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.form-section {
  display: none;
  width: 100%;
}

.form-section.active {
  display: block;
}

.form-section h2 {
  color: #333;
  margin-bottom: 30px;
  font-size: 2rem;
  text-align: center;
}

.register-form h3 {
  color: #667eea;
  margin-bottom: 20px;
  font-size: 1.3rem;
  text-align: center;
}

.user-type-selector {
  display: flex;
  margin-bottom: 30px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.type-btn {
  flex: 1;
  padding: 12px;
  border: none;
  background: #f8f9fa;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 500;
}

.type-btn.active {
  background: rgb(82, 18, 18);
  color: white;
}

.type-btn:hover {
  background: rgb(84, 21, 32);
  color: white;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group i {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  z-index: 1;
}

.input-group input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid #e1e5e9;
  border-radius: 10px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.input-group input:focus {
  outline: none;
  border-color: #667eea;
  background: white;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.btn {
  width: 100%;
  padding: 15px;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.3);
}

.form-switch {
  text-align: center;
  margin-top: 30px;
  color: #666;
}

.form-switch a {
  color: #667eea;
  text-decoration: none;
  font-weight: 600;
}

.form-switch a:hover {
  text-decoration: underline;
}

.register-form {
  display: none;
}

.register-form.active {
  display: block;
}

/* Responsividade */
@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
    max-width: 400px;
  }

  .logo-section {
    padding: 40px 20px;
  }

  .logo {
    width: 80px;
    height: 80px;
  }

  .logo-section h1 {
    font-size: 2rem;
  }

  .form-container {
    padding: 40px 20px;
  }

  .user-type-selector {
    flex-direction: column;
  }

  .type-btn {
    border-radius: 0;
  }

  .type-btn:first-child {
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
  }

  .type-btn:last-child {
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

/* Animações */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.form-section.active {
  animation: fadeIn 0.5s ease;
}

/* Estilos para validação */
.input-group input.error {
  border-color: #e74c3c;
  background: #fdf2f2;
}

.input-group input.success {
  border-color: #27ae60;
  background: #f2fdf2;
}

.error-message {
  color: #e74c3c;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}

.success-message {
  color: #27ae60;
  font-size: 0.9rem;
  margin-top: 5px;
  display: block;
}

/* Animações para notificações */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}
