﻿/* =========================================================
   XEARN ERP - LOGIN
   ========================================================= */

:root {
    --xearn-blue: #1266e8;
    --xearn-blue-dark: #071b46;
    --xearn-blue-light: #1b8df2;
    --xearn-green: #16a637;
    --xearn-red: #ed1c24;
    --text-dark: #101c35;
    --text-muted: #7b8497;
    --background: #f4f7fb;
    --white: #ffffff;
    --border: #e1e6ef;
}


/* =========================================================
   BODY
   ========================================================= */

body {
    margin: 0;
    background: radial-gradient( circle at 10% 10%, rgba(18, 102, 232, 0.08), transparent 30% ), radial-gradient( circle at 90% 90%, rgba(22, 166, 55, 0.06), transparent 30% ), var(--background);
    font-family: "Poppins", Roboto, Arial, sans-serif;
}


/* =========================================================
   CONTENEDOR
   ========================================================= */

.ContenedorStyles {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
}


/* =========================================================
   CARD PRINCIPAL
   ========================================================= */

.LoginCard {
    width: 1050px;
    max-width: 100%;
    min-height: 650px;
    display: grid;
    grid-template-columns: 48% 52%;
    background: var(--white);
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(10, 35, 80, 0.14), 0 5px 20px rgba(10, 35, 80, 0.06);
}


/* =========================================================
   PANEL IZQUIERDO
   ========================================================= */

.LoginBrandPanel {
    position: relative;
    overflow: hidden;
    background: linear-gradient( 145deg, #06183e 0%, #08265e 48%, #0b55bd 100% );
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}


/* brillo */

.BrandGlow {
    position: absolute;
    border-radius: 50%;
    filter: blur(3px);
    pointer-events: none;
}


.BrandGlow1 {
    width: 350px;
    height: 350px;
    right: -160px;
    top: -100px;
    background: radial-gradient( circle, rgba(22, 166, 55, .25), transparent 70% );
}


.BrandGlow2 {
    width: 400px;
    height: 400px;
    left: -250px;
    bottom: -220px;
    background: radial-gradient( circle, rgba(27, 141, 242, .35), transparent 70% );
}


/* =========================================================
   CONTENIDO BRAND
   ========================================================= */

.BrandContent {
    position: relative;
    z-index: 2;
    width: 80%;
}


.BrandLogo {
    background: white;
    display: inline-flex;
    padding: 18px 24px;
    border-radius: 14px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, .15);
}


.LogoXearn {
    width: 250px;
    height: auto;
    display: block;
}


/* línea */

.BrandSeparator {
    width: 65px;
    height: 4px;
    margin-top: 28px;
    margin-bottom: 22px;
    border-radius: 10px;
    background: linear-gradient( 90deg, var(--xearn-blue-light), var(--xearn-green) );
}


/* =========================================================
   ERP
   ========================================================= */

.BrandERP {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    border-radius: 30px;
    background: rgba(255, 255, 255, .10);
    border: 1px solid rgba(255, 255, 255, .18);
    backdrop-filter: blur(10px);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
}


.ERPIcon {
    width: 25px;
    height: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: linear-gradient( 135deg, var(--xearn-blue-light), var(--xearn-green) );
    font-size: 12px;
}


/* =========================================================
   TITULO BRAND
   ========================================================= */

.BrandContent h2 {
    margin: 20px 0 10px;
    font-size: 32px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: -1px;
}


.BrandContent > p {
    max-width: 390px;
    margin: 0;
    color: rgba(255,255,255,.72);
    font-size: 15px;
    line-height: 1.6;
}


/* =========================================================
   FEATURES
   ========================================================= */

.BrandFeatures {
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}


.BrandFeature {
    display: flex;
    align-items: center;
    gap: 12px;
    color: rgba(255,255,255,.88);
    font-size: 14px;
}


    .BrandFeature i {
        width: 31px;
        height: 31px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        background: rgba(255,255,255,.10);
        color: #66a9ff;
    }


/* =========================================================
   CUADRITOS DEL LOGO
   ========================================================= */

.BrandSquares {
    position: absolute;
    right: 35px;
    bottom: 35px;
    display: flex;
    gap: 8px;
    transform: rotate(-20deg);
    opacity: .8;
}


.Square {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}


    .Square.blue {
        background: #1684ed;
    }


    .Square.blue2 {
        background: #0c5ed1;
    }


    .Square.red {
        background: var(--xearn-red);
    }


    .Square.green {
        background: var(--xearn-green);
    }


/* =========================================================
   PANEL DERECHO
   ========================================================= */

.LoginFormPanel {
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
}


.LoginFormContainer {
    width: 390px;
    max-width: 82%;
}


/* =========================================================
   MOBILE LOGO
   ========================================================= */

.MobileLogo {
    display: none;
    text-align: center;
    margin-bottom: 30px;
}


    .MobileLogo img {
        width: 190px;
    }


/* =========================================================
   HEADER
   ========================================================= */

.LoginHeader {
    margin-bottom: 35px;
}


.LoginWelcome {
    display: block;
    margin-bottom: 7px;
    color: var(--xearn-blue);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}


.LoginHeader h1 {
    margin: 0;
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}


.LoginHeader p {
    margin: 8px 0 0;
    color: var(--text-muted);
    font-size: 14px;
}


/* =========================================================
   INPUTS
   ========================================================= */

.LoginInputGroup {
    margin-bottom: 22px;
}


    .LoginInputGroup label {
        display: block;
        margin-bottom: 8px;
        color: var(--text-dark);
        font-size: 13px;
        font-weight: 600;
    }


.LoginInputWrapper {
    position: relative;
}


    .LoginInputWrapper > i {
        position: absolute;
        left: 16px;
        top: 50%;
        transform: translateY(-50%);
        color: #9aa5b8;
        font-size: 15px;
        z-index: 2;
    }


.LoginInput {
    width: 100%;
    height: 52px;
    box-sizing: border-box;
    padding: 0 45px;
    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;
    background: #fafbfd;
    color: var(--text-dark);
    font-size: 14px;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}


    .LoginInput::placeholder {
        color: #a5adba;
    }


    .LoginInput:focus {
        background: white;
        border-color: var(--xearn-blue);
        box-shadow: 0 0 0 4px rgba(18, 102, 232, .09);
    }


/* =========================================================
   PASSWORD
   ========================================================= */

.PasswordToggle {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 9px;
    background: transparent;
    color: #8994a7;
    cursor: pointer;
    transition: .2s;
}


    .PasswordToggle:hover {
        background: #f0f4fa;
        color: var(--xearn-blue);
    }


/* =========================================================
   CAPTCHA
   ========================================================= */

.CaptchaContainer {
    margin: 8px 0 20px;
    overflow: hidden;
}


/* =========================================================
   BOTON LOGIN
   ========================================================= */

.LoginButton {
    width: 100%;
    height: 53px;
    border: none;
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: linear-gradient( 100deg, #0c5ed1, #147be9 );
    color: white;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(18, 102, 232, .22);
    transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}


    .LoginButton:hover {
        transform: translateY(-1px);
        filter: brightness(1.04);
        box-shadow: 0 12px 25px rgba(18, 102, 232, .28);
    }


    .LoginButton:active {
        transform: translateY(0);
    }


    .LoginButton i {
        font-size: 13px;
    }


/* =========================================================
   VALIDACIONES
   ========================================================= */

.LoginValidation {
    font-size: 13px;
    margin-top: 15px;
}


.text-danger {
    font-size: 12px;
}


/* =========================================================
   RECUPERAR PASSWORD
   ========================================================= */

.ForgotPassword {
    text-align: center;
    margin-top: 25px;
}


    .ForgotPassword a {
        color: var(--xearn-blue);
        text-decoration: none;
        font-size: 13px;
        font-weight: 600;
        transition: .2s;
    }


        .ForgotPassword a:hover {
            color: var(--xearn-blue-dark);
        }


    .ForgotPassword i {
        margin-right: 6px;
    }


/* =========================================================
   FOOTER
   ========================================================= */

.LoginFooter {
    margin-top: 38px;
    padding-top: 18px;
    border-top: 1px solid #edf0f5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #a0a8b6;
    font-size: 11px;
}


    .LoginFooter span:first-child {
        color: var(--xearn-blue);
        font-weight: 700;
    }


.FooterDot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--xearn-green);
}


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 991px) {

    .LoginCard {
        width: 600px;
        grid-template-columns: 1fr;
    }

    .LoginBrandPanel {
        display: none;
    }

    .MobileLogo {
        display: block;
    }

    .LoginFormPanel {
        min-height: 650px;
    }
}


@media (max-width: 575px) {

    .ContenedorStyles {
        padding: 15px;
    }

    .LoginCard {
        min-height: auto;
        border-radius: 18px;
    }

    .LoginFormPanel {
        padding: 40px 0;
        min-height: auto;
    }

    .LoginFormContainer {
        width: 100%;
        max-width: 88%;
    }

    .LoginHeader h1 {
        font-size: 28px;
    }
}
