* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: linear-gradient(to right, #e0f2fe, #bfdbfe, #93c5fd);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  overflow-y: hidden;
}

h1 {
  color: #333;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
}

#link {
  margin-top: 15px;
  color: #333;
}

span {
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 30px;
  max-width: 320px;
}

#nada {
  font-size: 12px;
  max-width: 320px;
  color: #e74c3c;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #fff;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  max-width: 420px;
  width: 100%;
  animation: fadeIn 0.7s ease-in-out;
}

input {
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 12px 15px;
  width: 340px;
  font-size: 14px;
  margin-top: 10px;
  outline: none;
  transition: all 0.3s ease;
}

input:focus {
  border-color: #2575fc;
  box-shadow: 0 0 6px rgba(37, 117, 252, 0.3);
}

button {
  margin-top: 15px;
  border: none;
  background: #2575fc;
  color: #fff;
  cursor: pointer;
  font-size: 15px;
  border-radius: 8px;
  padding: 12px;
  width: 100%;
  font-weight: bold;
  transition: all 0.3s ease;
  margin-bottom: 15px;
}

button:hover {
  background: #1a5cd8;
}

a,
a:visited {
  margin-top: 15px;
  color: #2575fc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  form {
    max-width: 380px;
    padding: 35px;
  }

  input {
    width: 300px;
  }

  h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 768px) {
  form {
    max-width: 320px;
    padding: 30px;
  }

  input {
    width: 100%;
  }

  h1 {
    font-size: 1.6rem;
  }

  span {
    max-width: 100%;
  }

  #nada {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  form {
    padding: 25px;
    border-radius: 14px;
  }

  h1 {
    font-size: 1.4rem;
  }

  input {
    padding: 10px 12px;
    font-size: 0.9rem;
  }

  button {
    padding: 11px;
    font-size: 0.95rem;
  }
}

@media (min-width: 1440px) {
  form {
    max-width: 500px;
    padding: 45px;
  }

  h1 {
    font-size: 2.4rem;
  }

  input {
    width: 400px;
  }
}

@media (prefers-color-scheme: dark) {
  body {
    background: linear-gradient(to right, #090b0c, #172230, #091829);
    color: #e6edf3;
  }

  input:-webkit-autofill,
  input:-webkit-autofill:hover,
  input:-webkit-autofill:focus {
    background-color: #1e2329 !important;
    border: 1px solid #3b82f6 !important;
    -webkit-text-fill-color: #e6edf3 !important;
    caret-color: #e6edf3 !important;
    transition: background-color 9999s ease-in-out 0s;
  }

  form {
    background-color: #12161b;
    color: #e6edf3;
  }

  h1 {
    color: #93c5fd;
  }

  span,
  #link {
    color: #c9d1d9;
  }

  input {
    background-color: #1e2329;
    border: 1px solid #444;
    color: #e6edf3;
  }

  input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 6px rgba(59, 130, 246, 0.3);
  }

  button {
    background: #3b82f6;
  }

  button:hover {
    background: #2563eb;
  }

  a {
    color: #3b82f6;
  }

  #nada {
    color: #f87171;
  }
}
