﻿


@font-face {
    font-family: 'Rubik';
    src: url('/assets/fonts/Rubik-Regular.ttf') format('truetype');

}

@font-face {
    font-family: 'Rubik';
    src: url('/assets/fonts/Rubik-Bold.ttf') format('truetype');

}

@font-face {
    font-family: 'Monument Extended';
    src: url('/assets/fonts/MonumentExtended.ttf') format('truetype');
}

body {
    font-family: 'Rubik', sans-serif !important;
}
.login-layout {
    display: flex;
    min-height: 100vh;
    width: 100%;
    margin: 0;
}

.login-left {
    flex: 0 0 50%; /* left column narrower to match design */
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login-left-inner {
    width: 100%;
    padding: 80px 80px;
}

.login-right {
    flex: 1 1 50%;
    background-image: url('../images/background/ContainerLogin.png');
    background-size: cover;
    background-position: center center;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.login-title {
    font-size: 48px;
    margin: 0 0 10px 0;
    font-weight: 800;
    color: #222;
}

.login-subtitle {
    color: #8a9096;
    margin: 8px 0 28px 0;
}
.login-error { color: #FF5C5C; display:block; margin-top:12px; font-weight:700 }
/* Modern Reset & Base Styles */
body.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    min-height: 100vh;
    margin: 0;
    font-family: 'Rubik', sans-serif !important;
}

/* Conflict Resolution: Ensure Bootstrap Modals are hidden by default */
/* Bootstrap .modal class handles display:none, but just in case of any override */
.modal.fade {
    display: none;
}

.login-container {
    width: 100%;
    max-width: 440px;
    background: white;
    padding: 48px 40px;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.09);
    text-align: center;
    /* Ensure it stays above any Bootstrap defaults */
    position: relative;
    z-index: 1;
}

.login-logo {
    margin-bottom: 32px;
}

    .login-logo .mid {
        font-size: 64px;
        font-weight: 800;
        color: #574F91;
        line-height: 1;
    }

    .login-logo .negocios {
        font-size: 28px;
        font-weight: 700;
        color: #574F91;
        display: block;
    }

.login-welcome {
    font-size: 36px;
    font-weight: 400;
    color: #EF7622;
    margin-bottom: 8px;
    margin-top: 0;
    font-family: 'Monument Extended', sans-serif;
}

.login-subtitle {
    font-size: 20px;
    color: #2D3436;
    font-weight: 600;
    margin-bottom: 25px;
}

.login-form .form-group {
    text-align: left;
    margin-bottom: 24px;
}

.login-form label {
    font-size: 14px;
    font-weight: 500;
    color: #343434;
    margin-bottom: 12px;
    display: block;
    text-align: left;
}

.login-form .form-control-minimal {
    width: 100%;
    border: none;
    border-bottom: 1px solid #DFE6E9;
    padding: 8px 0;
    font-size: 15px;
    color: #343434;
    outline: none;
    transition: border-color 0.2s;
    background: transparent;
    box-shadow: none;
    border-radius: 0;
    height: auto;
}

    .login-form .form-control-minimal::placeholder {
        color: #B2BEC3;
    }

    .login-form .form-control-minimal:focus {
        border-bottom-color: #574F91;
    }

.forgot-password {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #574F91 !important;
    text-decoration: none;
    font-weight: 400;
    margin-top: -8px;
    cursor: pointer;
}

.login-footer {
    font-size: 13px;
    color: #636E72;
    position: absolute;
    bottom: 0px;
    text-align: center;
    width: 100%;
    left: 0;
    font-weight: 400;
}

/* CUSTOM Modal Styles (New Design) */
/* Renamed inner class to .custom-modal-card to avoid conflict with Bootstrap .modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
    z-index: 2000;
    /* Higher than Bootstrap modal default 1050 */
}

.login-page-modal .custom-modal-card {
    background: white;
    border-radius: 24px;
    position: relative;
    max-width: 440px;
    width: 90%;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    display: block;
    margin: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    cursor: pointer;
    font-size: 20px;
    color: #B2BEC3;
}

.error {
    color: red;
    font-size: 12px;
    display: block;
    margin-top: 5px;
}

/* Needed for ASP.NET Button styling override */
input.btn-primary[type="submit"] {
    width: 100%;
    background-color: #574F91;
    border: none;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    padding: 12px;
    color: white;
    cursor: pointer;
    transition: background-color 0.2s;
    line-height: 20px;
}

    input.btn-primary[type="submit"]:hover {
        background-color: #4a4275;
    }

/* Loading */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
}

label.error {
    /* background-color: #9d0606; */
    color: #FF5C5C;
    /* padding: 6px; */
    margin-top: 5px;
    /* border-radius: 6px; */
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px white inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 5000s ease-in-out 0s;
}


.login-page {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

.login-left {
    width: 50%;
    max-width: 720px;
    padding: 80px 64px;
    box-sizing: border-box;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative; /* allow absolute positioning of logo */
    text-align: left;
    min-height: 570px;
}

.login-logo img {
    max-width: 160px;
    display: block;
    margin-bottom: 0;
}

/* Place logo at top-left while keeping main content vertically centered */
.login-left .login-logo {
    position: absolute;
    top: 24px;
    left: 64px; /* matches horizontal padding of .login-left */
    z-index: 3;
}

/* Reduce logo size slightly on large screens to avoid overlap with centered content */
@media (min-width: 1000px) {
    .login-left .login-logo img {
        max-width: 140px;
    }
}

.login-welcome {
    font-family: "Monument Extended", sans-serif;
    font-size: 42px;
    line-height: 52px;
    margin: 0 0 12px;
    color: #343434;
    font-weight: 400;
    letter-spacing: 0;
}

.login-subtitle {
    margin: 0 0 34px;
    font-size: 16px;
    line-height: 24px;
    font-style: normal;
    color: #717182;
    font-weight: 400;
}

.login-form {
    max-width: 420px;
    width: 100%;
}



.form-control-minimal {
    width: 100%;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid var(--input-border);
    outline: none;
    font-size: 14px;
    background: transparent;
    box-sizing: border-box;
    margin-bottom: 18px;
}

.forgot-password {
    display: inline-block;
    font-size: 13px;
    color: var(--primary-purple);
    cursor: pointer;
}

.btn.btn-primary {
    background: var(--primary-purple);
    border: none;
    color: #fff;
    width: 220px;
    padding: 12px 18px;
    border-radius: 10px;
    font-weight: 700;
    box-shadow: none;
}

.login-footer {
    color: #717182;
    font-size: 12px;
    text-align: left;
    padding-left: 64px;
    padding-bottom: 5px;
}


.login-right::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url(/images/background/containerup2.png),url(/images/background/Containerup.png), url(/images/background/ContainerLogin.png);
    background-repeat: no-repeat, no-repeat;
    background-position: center;
    background-size: cover;
    z-index: 0;
    opacity: 1;
}

.promo {
    position: relative;
    z-index: 2;
    max-width: 520px;
    text-align: center;
}

    .promo .hero-icon {
        width: 96px;
        height: 96px;
        background: rgba(255,255,255,0.08);
        border-radius: 999px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 18px;
        font-size: 22px;
        color: rgba(255,255,255,0.95);
    }

    .promo h2 {
        font-size: 40px;
        margin: 0 0 20px;
        color: #fff;
        line-height: 50px;
        font-family: "Monument Extended", sans-serif;
        font-weight: 400;
    }

    .promo p {
        color: rgba(255, 255, 255, 0.9);
        margin-bottom: 20px;
        font-size: 19px;
        line-height: 30px;
        font-weight: 400;
    }

    .promo .pills {
        display: flex;
        gap: 12px;
        justify-content: center;
        flex-wrap: wrap;
    }

.pill {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 14px 14px;
    border-radius: 20px;
    font-size: 14px;
    line-height: 20px;
    font-weight: 500;
    max-width: 208px;
    height: 46px;
}

/* Arrange pills: first two inline, third centered on new row */
.pills .pill {
    flex: 0 0 auto;
}
.pills .pill:nth-child(3) {
    flex-basis: 100%;
    display: flex;
    justify-content: center;
}

/* Responsive */
@media (max-width: 900px) {
    .login-left {
        width: 100%;
        padding: 40px 28px;
        flex: auto;
        max-width: none;
    }

    .login-right {
        display: none;
    }

    .btn.btn-primary {
        width: 100%;
    }

    
}



@media (max-height:700px) {

    .login-left {
        padding: 20px 35px;
    }

    .login-logo img {
        width: 100px;
    }

    .login-form {
        gap: 10px;
    }

    .login-footer {
        font-size: 12px;
        padding-top: 10px;
    }

    .login-form .form-group {
        margin-bottom: 8px !important;
    }

    .login-form input {
        height: 40px;
    }

    .btn-login {
        height: 42px;
        position: absolute;
        top: 24px;
    }

    .login-left .login-logo {
        position: absolute;
        left: 50px !important;
    }


    .login-welcome {
        font-family: "Monument Extended", sans-serif;
        font-size: 36px;
        line-height: 37px;
        margin: 0 0 12px;
        color: #343434;
        font-weight: 400;
        letter-spacing: 0;
        padding-top: 15px;
    }

    
}

@media (max-height:570px) {

    .login-left {
        padding: 20px 35px;
    }

    .login-logo img {
        width: 80px;
    }

    .login-form {
        gap: 10px;
    }

    .login-footer {
        font-size: 12px;
        padding-top: 10px;
    }

    .login-form .form-group {
        margin-bottom: 8px !important;
    }

    .login-form input {
        height: 40px;
    }

    .btn-login {
        height: 42px;
        position: absolute;
        top: 24px;
    }

    .login-left .login-logo {
        position: absolute;
        left: 50px !important;
    }

    .login-welcome {
        font-family: "Monument Extended", sans-serif;
        font-size: 36px;
        line-height: 37px;
        margin: 0 0 12px;
        color: #343434;
        font-weight: 400;
        letter-spacing: 0;
        padding-top: 15px;
    }
}