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

body {
  min-height: 100vh;
  background-image: url('./security.jpg'); /* Me equivoque en la ruta muchas veces XD */
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.container {
  height: auto;
  background: rgba(255,255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  width: 100%;
  max-width: 600px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  border: 2px solid white;
}

h1 {
  color: #ffff;
  text-align: center;
  margin-bottom: 20px;
  font-size: clamp(1.4em, 4vw, 1.8em);
}
h2{
    color: #ffff;
    margin-bottom: 20px;
    font-size: 1.8em
  }

textarea {
  background: rgba(255, 255, 255, 0.15);
  min-height: 60px;
  max-height: 150px;
  width: 100%;
  height: 15%;
  margin-bottom: 15px;
  padding: 10px;
  font-size: clamp(0.9em, 2vw, 1em);
  border: 2px solid white;
  border-radius: 8px;
  field-sizing: content;/* Evita el textarea crezca mediante el contenido*/
  scrollbar-color: #4a90e2 transparent;
  resize: none;
  transition: height 0.2s ease;

}

textarea:focus{
    outline: none;
    box-shadow: 0px 0px 10px 2px white;
}

textarea::placeholder, textarea::-webkit-input-placeholder{
    color: #ffff;
}
.botones{
  display: flex;
  flex-direction: column;
  gap: 5px;
}

button {
  padding: 10px 20px;
  margin: 5px 0;
  font-size: 1em;
  background-color: #4a90e2;
  color: white;
  border: 2px solid white;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}
button:disabled {
  background-color: #a0a0a0;
  cursor: not-allowed;
}

button:active{
    transform: scale(0.9);
    transition: 0.1s ease-in-out;
}
button:focus{
    box-shadow: 0px 0px 10px 2px #4a90e2;
    transition: 0.9 ease-in-out white;
}

button:hover {
  background-color: #357ab8;
}

#mensajeError {
  font-size: clamp(1em, 3vw, 1.2em);
  text-decoration: underline;
  color: red;
  margin-top: 10px;
  font-weight: bold;
  text-align: center;
  text-shadow: 1px 1px 2px black;
  
}

/* Responsive */
@media (max-width: 768px) {
  .container{
    padding: 15px;
  }
  button{
    font-size: 0.9em;
    padding: 8px;
  }
}
@media (max-width: 480px) {
  body{
    padding: 10px;
  }
  .container{
    padding: 10px;
  }
  h1{
    font-size: 1.4em;
  }
    h2{
    padding-top: 30px;
  }


  button {
    font-size: 0.85em;
    padding: 6px;
  }
} 
