/* Archivo de estilos para la autenticación moderna y responsiva */

:root {
    --auth-overlay-color: rgba(0, 0, 0, 0.4);
    --auth-card-bg: rgba(255, 255, 255, 0.15);
    --auth-card-blur: 15px;
    --auth-text-color: #ffffff;
    --auth-input-bg: rgba(255, 255, 255, 0.9);
    --auth-btn-hover: #0056b3;
}

.auth-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('../images/fondo-inicio.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    z-index: 1;
    overflow-y: auto;
}

/* Soporte para fondos específicos por tamaño si existen (opcional) */
@media (max-width: 768px) {
    .auth-container {
        /* background-image: url('../images/fondo-inicio-m.png'); */
        padding: 20px;
    }
}

.auth-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--auth-overlay-color);
    z-index: 2;
}

.auth-card-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 450px;
    padding: 15px;
}

.auth-card {
    background: var(--auth-card-bg);
    backdrop-filter: blur(var(--auth-card-blur));
    -webkit-backdrop-filter: blur(var(--auth-card-blur));
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    overflow: hidden;
    transition: transform 0.3s ease;
}

.auth-card-body {
    padding: 2.5rem 2rem;
}

.auth-logo {
    max-height: 80px;
    margin-bottom: 1rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.auth-title {
    color: var(--auth-text-color);
    font-weight: 700;
    text-align: center;
    margin-bottom: 2rem;
    font-size: 1.75rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Estilos de inputs flotantes adaptados */
.auth-input {
    background-color: var(--auth-input-bg) !important;
    border-radius: 10px !important;
    border: none !important;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1) !important;
}

.form-floating > label {
    color: #495057;
}

.btn-auth {
    padding: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.auth-link {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
    font-weight: 500;
}

.auth-link:hover {
    color: #e0e0e0;
    text-decoration: underline;
    opacity: 0.9;
}

/* Adaptación para pantallas horizontales pequeñas o dispositivos móviles */
@media (max-height: 600px) {
    .auth-container {
        align-items: flex-start;
        padding-top: 20px;
        padding-bottom: 20px;
    }
    .auth-card-body {
        padding: 1.5rem 1.5rem;
    }
    .auth-title {
        margin-bottom: 1rem;
    }
}

/* Ajustes de accesibilidad y visibilidad */
.text-danger.small {
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 8px;
    border-radius: 4px;
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
}
