﻿:root {
    /* Paleta de colores refinada */
    --azul-primario: #004488;
    --azul-secundario: #002244;
    --azul-acento: #0066CC;
    --fondo-input: #F8FAFC;
    --borde-input: #E2E8F0;
    --texto-oscuro: #1E293B;
    --texto-mutado: #64748B;
    --font-family-login: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
    --bg-gradiente: linear-gradient(135deg, #051A2E 0%, #004488 100%);
    --transicion-suave: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    font-family: var(--font-family-login);
    margin: 0;
    padding: 0;
    background-color: #051A2E; /* Fallback */
}

/* --- CONTENEDOR PRINCIPAL --- */
.contenedor-login {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: var(--bg-gradiente);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow: hidden; /* Oculta lo que sale de los círculos decorativos */
}

/* --- DECORACIONES DE FONDO (Efecto Profundidad) --- */
.decoracion-fondo {
    position: absolute;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0) 100%);
    backdrop-filter: blur(10px);
    z-index: 0;
    pointer-events: none;
}

.shape-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    left: -150px;
}

.shape-2 {
    width: 400px;
    height: 400px;
    bottom: -100px;
    right: -100px;
}

.contenido-der {
    z-index: 10;
    width: 100%;
    display: flex;
    justify-content: center;
}

/* --- TARJETA --- */
.login-card {
    background: #ffffff;
    padding: 3rem 2.5rem;
    border-radius: 1.25rem;
    /* Sombra premium: combinación de sombra difusa y un ligero borde */
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.1);
    width: 100%;
    max-width: 420px;
    text-align: center;
}

/* --- LOGO --- */
.img_contenedor {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.img_estilo_logo {
    max-width: 240px;
    height: auto;
}

/* --- TEXTOS --- */
.subtitle-login {
    font-size: 1rem;
    color: var(--texto-mutado);
    margin-bottom: 2rem;
    font-weight: 500;
}

/* --- CONTENEDOR DE INPUTS --- */
.input-icon-wrapper {
    position: relative;
    margin-bottom: 1.2rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--texto-mutado);
    font-size: 1.1rem;
    transition: var(--transicion-suave);
    z-index: 2;
}

/* --- CAMPOS (INPUTS) --- */
.estilos-inputs-login {
    font-size: 1rem !important;
    padding: 1rem 1rem 1rem 2.8rem !important;
    height: auto !important;
    border: 2px solid var(--borde-input) !important;
    border-radius: 0.75rem;
    background-color: var(--fondo-input);
    color: var(--texto-oscuro);
    width: 100%;
    transition: var(--transicion-suave);
}

    /* Efecto Focus */
    .estilos-inputs-login:focus {
        background-color: #ffffff;
        border-color: var(--azul-acento) !important;
        box-shadow: 0 4px 15px rgba(0, 102, 204, 0.1);
        outline: none;
    }

        /* Ícono Activo */
        .estilos-inputs-login:focus + .input-icon,
        .input-icon-wrapper:focus-within .input-icon {
            color: var(--azul-acento);
        }

    .estilos-inputs-login::placeholder {
        font-size: 0.95rem;
        color: #94A3B8;
    }

/* --- BOTÓN --- */
.mrg-top-30 {
    margin-top: 1.8rem;
}

.btn-login {
    font-size: 1.05rem;
    font-weight: 600;
    padding: 1rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--azul-acento) 0%, var(--azul-primario) 100%);
    color: white;
    width: 100%;
    border: none;
    cursor: pointer;
    transition: var(--transicion-suave);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 14px rgba(0, 68, 136, 0.3);
}

    .btn-login:hover, .btn-login:focus {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 68, 136, 0.4);
        outline: none;
    }

    .btn-login:active {
        transform: translateY(0);
        box-shadow: 0 2px 10px rgba(0, 68, 136, 0.3);
    }

/* --- ERRORES --- */
.mrg-top-20 {
    margin-top: 1.2rem;
}

.alert-danger {
    font-size: 0.9rem;
    border-radius: 0.5rem;
    background-color: #FEF2F2;
    color: #DC2626;
    border: 1px solid #FECACA;
    padding: 0.8rem 1rem;
    text-align: left;
    display: flex;
    align-items: center;
}
