/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Arial', sans-serif;
}

body {
  background-color: #121212;
  color: #ffffff;
  transition: background-color 0.3s, color 0.3s;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  position: relative;
}

body.light-theme {
  background-color: #f5f5f5;
  color: #121212;
}

/* Logo Container */
.logo-container {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 10;
}

.logo-container img {
  width: 100px;
  height: auto;
}

@media (max-width: 600px) {
  .logo-container {
    top: 10px;
    left: 10px;
  }

  .logo-container img {
    width: 70px;
  }
}

/* Toggle Switch para tema */
.theme-toggle {
  position: absolute;
  top: 15px;
  right: 15px;
  z-index: 10;
}

@media (max-width: 600px) {
  .theme-toggle {
    top: 10px;
    right: 10px;
  }
}

.switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #555;
  transition: background-color 0.3s;
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: transform 0.3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #3a86ff;
}

input:checked + .slider:before {
  transform: translateX(18px);
}

/* Formulário */
.form-container {
  background: #1f1f1f;
  padding: 30px;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  margin-top: 60px;
  z-index: 1;
}

body.light-theme .form-container {
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.form-container h2 {
  padding-bottom: 12px;
  font-size: 1.4rem;
}

/* Form Steps */
.form-step {
  display: none;
}

.form-step.active {
  display: block;
  animation: fade-in 0.5s ease;
}

/* Inputs e Textarea */
input[type="text"],
input[type="date"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  margin-bottom: 20px;
  background: transparent;
  border: none;
  border-bottom: 2px solid #444;
  color: #fff;
  font-size: 1rem;
  transition: border-bottom 0.3s, color 0.3s;
}

body.light-theme input,
body.light-theme textarea {
  border-bottom: 2px solid #ccc;
  color: #121212;
}

input:focus,
textarea:focus {
  outline: none;
  border-bottom: 2px solid #3a86ff;
}

input::placeholder,
textarea::placeholder {
  color: #aaa;
}

body.light-theme input::placeholder,
body.light-theme textarea::placeholder {
  color: #777;
}

/* Toggle Container */
.toggle-container {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}

/* Botões */
.button-container {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 20px;
}

button {
  background: transparent;
  color: #3a86ff;
  font-size: 1rem;
  font-weight: bold;
  border: none;
  cursor: pointer;
  padding: 10px 20px;
  transition: transform 0.2s, filter 0.2s;
}

button:hover {
  transform: scale(1.05);
  filter: brightness(1.3);
}

body.light-theme button {
  color: #007bff;
}

body.light-theme button:hover {
  filter: brightness(1.2);
}

/* Progress Bar */
.progress-bar {
  height: 8px;
  background: #444;
  border-radius: 5px;
  position: absolute;
  bottom: 10px;
  left: 20px;
  right: 20px;
  overflow: hidden;
  z-index: 2;
}

.progress {
  height: 100%;
  width: 0;
  background: #3a86ff;
  transition: width 0.3s ease;
}

/* Animações */
@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Responsividade */
@media (max-width: 600px) {
  body {
    padding: 10px;
  }

  .form-container {
    padding: 20px;
    margin-top: 80px;
    margin-bottom: 20px;
  }

  .logo-container img {
    width: 60px;
  }

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

  input,
  textarea {
    font-size: 0.9rem;
    padding: 10px;
    margin-bottom: 15px;
  }

  button {
    font-size: 0.9rem;
    padding: 8px 15px;
  }

  .progress-bar {
    bottom: 5px;
    left: 10px;
    right: 10px;
  }
}

/* Notificação Centralizada */
.notification {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #3a86ff;
  color: white;
  padding: 20px 30px;
  border-radius: 12px;
  font-size: 1rem;
  text-align: center;
  z-index: 99999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
  max-width: 90vw;
  width: max-content;
}

.notification.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.light-theme .notification {
  background: #007bff;
  color: #fff;
}

/* Card de Sucesso */
.success-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: #1f1f1f;
  color: #ffffff;
  padding: 30px;
  max-width: 420px;
  width: 90vw;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  z-index: 99999;
  text-align: center;
  font-size: 1rem;
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s ease;
}

.success-card.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

body.light-theme .success-card {
  background: #ffffff;
  color: #121212;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
