/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a8b84 0%, #1a3c8b 100%);
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Contenedor */
.login-container {
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Formulario estilo vidrio */
form {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Logo */
.logo {
    margin-bottom: 20px;
}

.logo img {
    max-width: 130px;
    height: auto;
    filter: drop-shadow(0 0 6px #ffffff);
}

/* Campos */
label {
    font-weight: 600;
    color: #ffffff;
    align-self: flex-start;
    margin: 12px 0 4px;
    font-size: 1rem;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.2); 
    color: #fff;
    font-size: 1.05rem;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

input::placeholder {
    color: #e0e0e0;
}

input[type="text"]:focus,
input[type="password"]:focus {
    border: 1px solid #ffffff;
    background-color: rgba(255, 255, 255, 0.25);
    outline: none;
}

/* Botón */
button {
    width: 100%;
    background: #ffffff;
    color: #1a3c8b;
    padding: 14px;
    font-size: 1.1rem;
    font-weight: bold;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    margin-top: 12px;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #e6e6e6;
}

/* Mensajes */
p {
    margin-top: 1rem;
    color: #ffbaba;
    font-weight: 500;
    text-align: center;
}
@media (max-width: 600px) {
  body {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    margin: 0;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
  }

  .login-container {
    width: 95vw !important;
    max-width: 95vw !important;
    height: auto;
    padding: 2rem 1rem;
    border-radius: 12px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.25);
    transform: scale(1.1); /* Escala opcional */
  }

  form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
  }

  input[type="text"],
  input[type="password"] {
    width: 100%;
    padding: 14px;
    font-size: 1.1rem;
  }

  button[type="submit"] {
    width: 100%;
    padding: 12px;
    font-size: 1.1rem;
  }

  img {
    max-width: 80%;
    height: auto;
    margin-bottom: 1rem;
  }
}
