/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #6EC1E4 0%, #FFBC7D 100%);
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    margin: 0;
}

/* Banner de imagen al 100% del ancho */
.full-width-banner {
    width: 100%;
    height: auto;
    overflow: hidden;
    margin: 0;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.full-width-banner img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Mantiene proporción sin deformar */
    max-height: 300px; /* Limita la altura en pantallas grandes */
    min-height: 120px;
}

/* Ajuste visual: oscurecer un poco la imagen para mejorar contraste del texto encima (opcional) */
/*
.full-width-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    pointer-events: none;
}
*/

/* Título sobre fondo oscuro */
h2 {
    font-size: 1.8rem;
    color: #7A7A7A;
    margin: 25px 0 15px;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
    text-align: center;
    width: 100%;
    max-width: 800px;
    z-index: 10;
}

/* Formulario de login */
form {
    background: #ffffff;
    padding: 30px 25px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 700px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

form:hover {
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

/* Inputs */
form input, form textarea, form select  {
    width: 100%;
    padding: 14px;
    margin-bottom: 18px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

form input:focus {
    border-color: #6a11cb;
    box-shadow: 0 0 0 3px rgba(106, 17, 203, 0.2);
}

/* Botón de ingreso */
form button, input[type="button"] {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #042947ff 0%, #5cb8f1ff 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 10px 0 0;
}



form button:hover, input[type="button"]:hover {
    background: linear-gradient(90deg, #5cb8f1ff 0%, #042947ff 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(106, 17, 203, 0.3);
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #7A7A7A;
    font-size: 0.95rem;
}

sample {
    display: block;
    margin-top: 8px;
    font-size: 0.85rem;
    color: #888;
}

/* Enlace de recuperación */
a {
    display: block;
    margin-top: 18px;
    text-align: center;
    color: #ffffff;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

a:hover {
    color: #cce7ff;
    text-decoration: underline;
}

/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

form {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Responsive */
@media (max-width: 768px) {
    .full-width-banner img {
        max-height: 220px; /* Reduce la altura en pantallas medianas */
    }

    h2 {
        font-size: 1.5rem;
        margin: 20px 0 15px;
    }

    form {
        padding: 25px 20px;
    }
}

@media (max-width: 480px) {
    .full-width-banner img {
        max-height: 180px; /* Reduce aún más la altura en pantallas pequeñas */
    }

    h2 {
        font-size: 1.3rem;
    }

    form input,
    form button {
        font-size: 0.95rem;
        padding: 12px;
    }
}