
/* ===================== Preloader Css Start ========================== */
@keyframes preloader-inside-white {
    0% {
        transform: scale(0, 0);
    }
    100% {
        transform: scale(1, 1);
    }
}

@keyframes preloader-inside-red {
    0% {
        transform: scale(0, 0);
    }
    30% {
        transform: scale(0, 0);
    }
    100% {
        transform: scale(1, 1);
    }
}

.preloader {
    position: fixed;
    width: 100%;
    height: 100vh;
    background-color: #fff;
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader .animated-preloader {
    display: inline-block;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 50%;
    left: 50%;
    background: hsl(var(--base));
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.preloader .animated-preloader::after {
    content: "";
    display: inline-block;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    border-radius: 50%;
    background: white;
    animation: preloader-inside-white 1s ease-in-out infinite;
}

.preloader .animated-preloader::before {
    content: "";
    display: inline-block;
    width: 100px;
    height: 100px;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    border-radius: 50%;
    background: hsl(var(--base));
    animation: preloader-inside-red 1s ease-in-out infinite;
}

/* ============================================================
   1. VARIABLES Y ESTILOS BASE
   ============================================================ */
:root {
    --primary-color: #051D6B;
    --primary-color-opaque: #051d6bd0;
    --card-light: #ffffff;
    --border-light: #e2e8f0;
    --base-h: 221;
    --base-s: 75%;
    --base-l: 60%;
    --base: var(--base-h) var(--base-s) var(--base-l);
}

a {
    text-decoration: none;
}

/* ============================================================
   2. CONTENEDORES PRINCIPALES (LAYOUT)
   ============================================================ */
.auth-wrapper {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    place-items: center;
}

@media (max-width: 991px) {
    .auth-wrapper {
        margin-top: 70px;
    }
}

/* Base de las Tarjetas Bento */
.bento-card {
    border-radius: 1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 
                0 4px 6px -2px rgba(0, 0, 0, 0.025);
}

.content-card {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ============================================================
   3. HERO CARD (COLUMNA IZQUIERDA - IMAGEN)
   ============================================================ */
.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.7s ease;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(25, 127, 230, 0.2);
    mix-blend-mode: overlay;
    z-index: 10;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    z-index: 20;
}

@media (min-width: 992px) {
    .hero-card {
        height: 100%;
    }
}

@media (max-width: 991px) {
    .hero-card {
        display: none;
    }
}

/* ============================================================
   4. TIPOGRAFÍA Y TEXTOS
   ============================================================ */
.display-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    line-height: 1.2;
    font-weight: 600;
}

.badge-text {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.link-primary {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.link-primary:hover {
    color: var(--primary-color-opaque);
}

/* ============================================================
   5. FORMULARIOS E INPUTS
   ============================================================ */
.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    z-index: 10;
}

.form-control-custom {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem 1rem 1rem 3rem;
    height: auto;
    font-size: 1rem;
}

/* Estados de Formulario */
.input-group-custom:focus-within {
    border-color: var(--primary-color); 
}

.input-group-custom:focus-within .input-icon svg {
    color: var(--primary-color);
}

.form-control-custom:focus {
    background-color: #f8fafc;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(25, 127, 230, 0.1);
}

/* Checkbox */
.form-check-input {
    width: 1rem;
    height: 1rem;
    border-radius: 0.25rem;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-label {
    font-size: 0.875rem;
}

/* ============================================================
   6. BOTONES Y ANIMACIONES
   ============================================================ */

/* Botón Login Principal */
.btn-login {
    background-color: var(--primary-color);
    color: white;
    font-weight: 700;
    height: 3.5rem;
    border-radius: 0.75rem;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.btn-login:hover {
    background-color: var(--primary-color-opaque);
    transform: translateY(-1px);
}

.btn-login:active {
    transform: translateY(0);
}

.btn-login svg {
    transition: transform 0.25s ease;
}

/* Botones Sociales */
.social-btn {
    background-color: var(--card-light);
    border: 1px solid var(--border-light);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    padding: 10px 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 4.5rem;
    cursor: pointer;
}

.social-icon {
    width: 1.25rem;
    height: 1.25rem;
    pointer-events: none;
    border: none;
}

.social-label {
    font-size: 0.875rem;
    font-weight: 700;
    color: #334155;
}

/* Animación de Flecha */
@keyframes LoginArrowRight {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(8px); }
}

.btn-login:hover svg {
    animation: LoginArrowRight 0.8s ease-in-out infinite;
    transform: none; 
}

/* ============================================================
   7. AJUSTES RESPONSIVOS FINALES
   ============================================================ */
@media (max-width: 767px) {
    .display-title {
        font-size: 2rem;
    }
    
    body {
        padding: 0.5rem;
    }
}