* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: #0f0f0f;
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

.form-section {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 119px;
  background: rgba(59, 59, 59, 0.514);
  min-height: 100vh;
  position: relative;
  z-index: 2;
}

.form-wrapper {
  width: 100%;
  max-width: 450px;
}

.form-wrapper h1 {
  text-align: center;
  margin-bottom: 30px;
  font-size: 2.5rem;
  font-weight: bold;
  color: #9a71fc;
}

/* Botões de alternância entre login e cadastro */
.form-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 30px;
  background: rgba(255, 255, 255, 0.05);
  padding: 5px;
  border-radius: 12px;
}

.toggle-btn {
  flex: 1;
  padding: 12px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.toggle-btn.active {
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(139, 92, 246, 0.3);
}

.toggle-btn:hover:not(.active) {
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.05);
}

/* Container para os formulários */
.form-content {
  display: block;
}

.form-content.hidden {
  display: none;
}

.form-wrapper h2 {
  font-size: 2rem;
  color: #ffffff;
  margin-bottom: 8px;
  font-weight: 600;
}

.form-subtitle {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  font-size: 1rem;
  line-height: 1.5;
}

/* Form styles */
.auth-form {
  margin-bottom: 30px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  color: #ffffff;
  font-weight: 500;
  margin-bottom: 8px;
  font-size: 0.9rem;
}

.input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.input-wrapper i {
  position: absolute;
  left: 15px;
  color: rgba(139, 92, 246, 0.7);
  font-size: 1rem;
  z-index: 1;
}

.input-wrapper input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-wrapper input:focus {
  outline: none;
  border-color: #8b5cf6;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.input-wrapper input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* Estilo específico para input de data */
.input-wrapper input[type="date"] {
  color-scheme: dark;
}

.input-wrapper input[type="date"]::-webkit-calendar-picker-indicator {
  filter: invert(1);
  cursor: pointer;
}

.toggle-password {
  position: absolute;
  right: 15px;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #8b5cf6;
}

/* Form options */
.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* Ajuste para quando não há link de "esqueceu senha" */
#cadastro-form .form-options {
  justify-content: flex-start;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

.checkbox-wrapper input {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 4px;
  margin-right: 8px;
  position: relative;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-wrapper input:checked + .checkmark {
  background: #8b5cf6;
  border-color: #8b5cf6;
}

.checkbox-wrapper input:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: -2px;
  left: 2px;
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #8b5cf6;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.forgot-password:hover {
  color: #a78bfa;
}

/* Submit button */
.submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #8b5cf6, #6d28d9);
  border: none;
  padding: 15px;
  border-radius: 12px;
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
  text-decoration: none;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.submit-btn:active {
  transform: translateY(0);
}

/* Divider */
.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.divider span {
  background: rgba(20, 20, 20, 0.95);
  padding: 0 15px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  position: relative;
}

/* Social login */
.social-login {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-btn {
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.social-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.google-btn:hover {
  border-color: #db4437;
}

.facebook-btn:hover {
  border-color: #4267b2;
}

/* Dedecoração do fundo */
.bg-decoration {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.party-icon {
  position: absolute;
  color: rgba(140, 91, 255, 0.548);
  font-size: 3rem;

}

.party-icon:nth-child(2) {
  animation-delay: -2s;
}

.party-icon:nth-child(3) {
  animation-delay: -4s;
}

.party-icon:nth-child(4) {
  animation-delay: -1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@media (max-width: 1024px) {
  .logo-wrapper h1 {
    font-size: 2.2rem;
  }

  .logo-wrapper p {
    font-size: 1rem;
  }

  .form-section {
    padding: 80px 40px;
  }

  .form-wrapper {
    max-width: 400px;
  }

  .form-wrapper h1 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .logo-section {
    padding: 30px 20px;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: auto;
  }

  .logo-main {
    width: 60px;
    height: 60px;
  }

  .logo-wrapper h1 {
    font-size: 2rem;
  }

  .logo-wrapper p {
    font-size: 0.95rem;
  }

  .form-section {
    padding: 60px 30px;
  }

  .form-wrapper {
    max-width: 100%;
  }

  .form-wrapper h2 {
    font-size: 1.6rem;
  }

  .form-subtitle {
    font-size: 0.9rem;
  }

  .toggle-btn {
    font-size: 0.9rem;
    padding: 10px;
  }

  .input-wrapper input {
    padding: 13px 13px 13px 40px;
    font-size: 0.95rem;
  }

  .input-wrapper i {
    left: 12px;
    font-size: 0.9rem;
  }

  .submit-btn {
    padding: 13px;
    font-size: 0.95rem;
  }

  .social-btn {
    padding: 11px;
    font-size: 0.9rem;
  }

  .party-icon {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .logo-section {
    padding: 20px 15px;
  }

  .logo-main {
    width: 50px;
    height: 50px;
  }

  .logo-wrapper h1 {
    font-size: 1.7rem;
  }

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

  .form-wrapper h1 {
    font-size: 1.7rem;
    margin-bottom: 20px;
  }

  .form-wrapper h2 {
    font-size: 1.4rem;
  }

  .form-subtitle {
    font-size: 0.85rem;
    margin-bottom: 20px;
  }

  .form-toggle {
    gap: 8px;
    padding: 4px;
  }

  .toggle-btn {
    font-size: 0.85rem;
    padding: 9px;
  }

  .input-group {
    margin-bottom: 16px;
  }

  .input-group label {
    font-size: 0.85rem;
    margin-bottom: 6px;
  }

  .input-wrapper input {
    padding: 12px 12px 12px 38px;
    font-size: 0.9rem;
  }

  .input-wrapper i {
    left: 11px;
    font-size: 0.85rem;
  }

  .toggle-password {
    right: 12px;
    font-size: 0.85rem;
  }

  .checkbox-wrapper {
    font-size: 0.85rem;
  }

  .checkmark {
    width: 16px;
    height: 16px;
  }

  .forgot-password {
    font-size: 0.85rem;
  }

  .submit-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .divider {
    margin: 20px 0;
  }

  .divider span {
    font-size: 0.85rem;
    padding: 0 10px;
  }

  .social-btn {
    padding: 10px;
    font-size: 0.85rem;
  }

  .party-icon {
    font-size: 1.5rem;
  }
}

@media (max-width: 360px) {
  .form-section {
    padding: 30px 15px;
  }

  .form-wrapper h1 {
    font-size: 1.5rem;
  }

  .form-wrapper h2 {
    font-size: 1.2rem;
  }

  .toggle-btn {
    font-size: 0.8rem;
    padding: 8px;
  }

  .input-wrapper input {
    padding: 11px 11px 11px 36px;
    font-size: 0.85rem;
  }

  .submit-btn {
    padding: 11px;
    font-size: 0.85rem;
  }

  .social-btn {
    padding: 9px;
    font-size: 0.8rem;
  }

  .party-icon {
    font-size: 1.2rem;
  }
}
