  :root {
    --bg: #ffffff;
    --text: #000000;
    --input-bg: #f1f1f1;
    --border: #cccccc;
  }

  .dark-mode {
    --bg: #121212;
    --text: #f9f9f9;
    --input-bg: #1e1e1e;
    --border: #444444;
  }

  body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    transition: 0.3s;
  }

  .container {
    display: flex;
    min-height: 100vh;
  }

  /* Lado imagem */
  .image-side {
    flex: 1;
    background-color: #2c2c2c;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .image-side img {
    width: 80%;
    max-width: 400px;
  }

  /* Lado formulário */
  .form-side {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 2rem;
  }

  form {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: var(--input-bg);
    padding: 2rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 12px rgba(0, 0, 0, 0.427);
  }

  input {
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 50px;
    background-color: var(--bg);
    color: var(--text);
  }

  button {
    padding: 0.8rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background-color: var(--text);
    color: var(--bg);
    transition: 0.3s;
  }

  button:hover {
    opacity: 0.8;
  }


  /* Botão tema */
  #theme-switch {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
  }

  .switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
  }

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

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

  .slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
  }

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

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

  /* Tema escuro */
  body.dark form {
    background-color: #1e1e1e;
    color: #fff;
  }

  body.dark input {
    background-color: #2b2b2b;
    color: #fff;
    border: 1px solid #444;
  }

  body.dark input::placeholder {
    color: #aaa;
  }

  body.dark button[type="submit"] {
    background-color: #444;
    color: #fff;
    border: none;
  }

  body.dark button[type="submit"]:hover {
    background-color: #666;
  }

body.dark a.link {
    color: #f9f9f9;
}

a.link {
  color: #000000;
}

@media (prefers-color-scheme: light) {
    .linkescuro {
        color: #000000;
    }
}



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

    .image-side {
      display: none;
    }

    .form-side {
      width: 100%;
      padding: 1rem;
    }

    form {
      padding: 1.5rem;
    }
  }
