﻿@import url('normalize.css');
@import url('bootstrap.min.css');

:root {
    /* Paleta principal */
    --primary: #0032ab;
    --primary-hover: #0555b8;
    /* Colores del Formulario y UI */
    --bg-page: #0f172a; /* Fondo oscuro */
    --bg-card: #ffffff;
    --input-bg: #E3EFEA;
    --input-text: #333333;
    --text-muted: #888888;
    /* Gradiente para el panel izquierdo */
    --brand-gradient: linear-gradient(135deg, #0032ab 0%, #076BE5 100%);
}

body, html {
    height: 100% !important;
    width: 100% !important;
    font-size: 15px;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
}

    body.bg-dark-theme {
        /* ========================= Fondo =============================== */
        background-image: url('../assets/img/fondo.svg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        /* Fondo sólido oscuro actual */
        /*background-color: var(--bg-page);*/
        display: flex;
        justify-content: center;
        align-items: center;
        min-height: 100vh;
    }

/* centrar en ASP.NET Web Forms */
#form1 {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-height: 100vh;
}

.txt-primary {
    color: var(--primary) !important;
}

.hover-primary:hover {
    color: var(--primary) !important;
    transition: 0.3s;
}

/* -----------------------------------------
   Estructura de la Tarjeta de Login (Card)
-------------------------------------------- */

/* Contenedor principal de la tarjeta */
.login-card {
    display: flex;
    flex-direction: row;
    background: var(--bg-card);
    border-radius: 1.5rem;
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    min-height: 550px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.4) !important;
    margin: 1rem;
}

/* Panel Izquierdo */
.brand-panel {
    width: 45%;
    background: var(--brand-gradient);
    position: relative;
    border-radius: 0rem 2rem 2rem 0rem;
}

/* Panel Derecho */
.form-panel {
    width: 55%;
    background: var(--bg-card);
}

/* -----------------------------------------
   Inputs y Botones
-------------------------------------------- */

.pill-input {
    background-color: var(--input-bg) !important;
    border: 2px solid #0000005c !important;
    border-radius: 50px !important;
    padding: 0.8rem 1.5rem !important;
    color: var(--input-text) !important;
    font-size: 0.95rem;
    box-shadow: none !important;
    transition: all 0.3s ease;
}

    .pill-input::placeholder {
        color: #9cb1a7 !important;
    }

    .pill-input:focus {
        border-color: var(--primary) !important;
        background-color: #ffffff !important;
        outline: none;
    }

.input__icon {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 1.5rem;
    height: 1.5rem;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
}

    .input__icon:hover {
        opacity: 1;
    }

.pill-btn {
    background-color: var(--primary);
    border: none;
    border-radius: 50px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

    .pill-btn:hover {
        background-color: var(--primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(7, 107, 229, 0.4) !important;
    }

/* --- ESTILOS DE VALIDACIÓN --- */
.is-invalid-custom {
    border-color: #e74c3c !important;
    background-color: #fdf2f2 !important;
}

.error-msg {
    color: #e74c3c;
    font-size: 0.75rem;
    letter-spacing: 0.3px;
}

/* -----------------------------------------
   Responsive
-------------------------------------------- */

@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        background: transparent;
        box-shadow: none !important;
        margin: 0;
        min-height: auto;
    }

    .brand-panel {
        width: 90%;
        margin: 0rem auto 0rem auto;
        border-radius: 1rem 1rem 2.5rem 2.5rem;
        padding: 2rem 1rem 4rem 1rem !important;
        display: flex !important;
    }

    .form-panel {
        width: 90%;
        margin: -4rem auto 2rem auto;
        border-radius: 1.5rem;
        box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
        padding: 2.5rem 1.5rem !important;
        z-index: 10;
    }

    .btn.w-75 {
        width: 90% !important;
    }
}
