/* agregar algun estilo de  https://css-pattern.com/ */

* {
  box-sizing: border-box;
}

body{
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  font-size: larger;
  background-color: #f5f5f5;
  padding: 20px;
  position: relative;
}

/* Amber Glow Background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: radial-gradient(125% 125% at 50% 90%, #ffffff 40%, #f59e0b 100%);
  background-size: 100% 100%;
}

.form-container{
  width: 100%;
  max-width: 500px;
  background-color: white;
  border-radius: 10px;
  padding: 30px 20px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  position: relative;
  z-index: 1;
  text-align: center;
}

.scada-image {
  width: auto;
  height: auto;
  max-width: 100%;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

form{
  display: flex;
  flex-direction: column;
  gap: 15px;
}

form+p, form p {
  text-align: center;
}

input, button{
  border-radius: 4px;
  border: unset;
  padding: 15px 20px;
  font-size: 16px;
  width: 100%;
}

input {
  border: 1px solid #ddd;
  background-color: #fafafa;
}

input:focus {
  outline: none;
  border-color: #f59e0b;
  background-color: white;
}

button{
  background-color: #f59e0b;
  color: white;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #d97706;
}

button:active {
  transform: translateY(1px);
}

.error{
  color: rgb(255, 81, 81);
  font-size: 14px;
  margin-top: 10px;
}

.escondido{
  display: none;
}

.sr-only{
  position:absolute;
  left:-10000px;
  top:auto;
  width:1px;
  height:1px;
  overflow:hidden;
}

/* Media queries para dispositivos móviles */
@media (max-width: 768px) {
  body {
    padding: 10px;
    font-size: 16px;
  }
  
  .form-container {
    padding: 20px 15px;
    margin: 10px;
  }
  
  .scada-image {
    max-width: 90%;
  }
  
  input, button {
    padding: 12px 15px;
    font-size: 16px; /* Evita zoom en iOS */
  }
  
  h1 {
    font-size: 24px;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  body {
    padding: 5px;
  }
  
  .form-container {
    padding: 15px 10px;
    border-radius: 8px;
  }
  
  .scada-image {
    max-width: 85%;
  }
  
  input, button {
    padding: 10px 12px;
  }
  
  h1 {
    font-size: 20px;
  }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 320px) {
  .form-container {
    padding: 10px 8px;
  }
  
  .scada-image {
    max-width: 80%;
  }
  
  input, button {
    padding: 8px 10px;
    font-size: 14px;
  }
}