@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
:root{
    --primaryDark:#00364f;
    --primaryRed:#004b6f;
    --secondary:#008ce3;
    --secondaryLight:#FFFFFF;
    --blue:#0076bd;
    --green:#32b84f;
    --gray:#5f6b7a;
    --background:#eef8ff;
    --inputBackground:#eaf4ff;
    --borderLight:#d9edf9;
    --shadow:0 24px 60px rgba(0, 55, 86, 0.16);
    --z-fixed: 100;
    --header-height: 3rem;
    --nav-width: 80px;
    --wrap:#00364f40;
    --inter:"Inter", sans-serif;
}
@media(min-width:1200px){
    .container{
        max-width: 1120px;
    }
}

.login{
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 12% 10%, rgba(0, 140, 227, 0.18), transparent 28%),
        linear-gradient(135deg, #f6fbff 0%, #eaf7ff 100%);
    padding: 2rem 1rem;
}
body{
    background-color: var(--background);
    font-family: var(--inter);
}

.login .row{
    align-items: stretch;
    margin-left: 0;
    margin-right: 0;
}

.login .col-md-6{
    padding-left: 0;
    padding-right: 0;
}

.wrap-login{
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 520px;
    background: var(--secondaryLight);
    border-radius: 0 16px 16px 0;
    box-shadow: var(--shadow);
    padding: 3rem 2rem;
}

.login-form{
    width: min(100%, 430px);
}


.form-group {
    position: relative;
    margin-bottom: 0;
}


label{
    position: static;
    display: block;
    margin-bottom: 0.45rem;
    background: transparent;
    z-index: 1000;
    font-size: 13px;
    text-transform: none;
    font-weight: 500;
    color: var(--gray);
}
.form-group a {
    color: gray;
}
h3{
    font-size: 24px;
    font-weight: 700;
    text-transform: none;
    color: #1e293b;
    text-align: left !important;
}
.form-control {
    background: var(--inputBackground);
    color: #1e293b;
    font-size: 14px;
    border-radius: 10px;
    -webkit-box-shadow: none;
    box-shadow: none;
    border: 1px solid var(--borderLight);
    height: 48px;
    padding-left: 46px;
}

.form-control::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: rgba(0, 0, 0, 0.2) !important;
}

.form-control::-moz-placeholder {
    /* Firefox 19+ */
    color: rgba(0, 0, 0, 0.2) !important;
}

.form-control:-ms-input-placeholder {
    /* IE 10+ */
    color: rgba(0, 0, 0, 0.2) !important;
}

.form-control:-moz-placeholder {
    /* Firefox 18- */
    color: rgba(0, 0, 0, 0.2) !important;
}

.form-control:focus,
.form-control:active {
    outline: none !important;
    -webkit-box-shadow: none;
    box-shadow: 0 0 0 4px rgba(0, 140, 227, 0.12);
    border: 1px solid var(--secondary);
}


.btn.btn-primary{
    background: linear-gradient(135deg, var(--primaryDark), #005f88);
    position: relative;
    overflow: hidden;
    border-radius: 9px;
    height: 48px;
    border: none;
    color: var(--secondaryLight);
    font-weight: 700;
    letter-spacing: 0.02em;
}
.btn.btn-primary::after{
    content:"";
    position:absolute;
    top:0;
    left:-100%;
    width:100%;
    height:100%;
    background:linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.25),
        transparent
    );
    transition:0.8s;
}

.btn.btn-primary:hover::after{
    left:100%;
}
.wrap-img{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 520px;
    border-radius: 16px 0 0 16px;
    padding: 4rem;
    background:
        linear-gradient(135deg, rgba(0, 54, 79, 0.96), rgba(0, 139, 227, 0.93)),
        url('../img/logo_fondo.png') center/cover no-repeat;
    color: var(--secondaryLight);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.wrap-img::after{
    content:"";
    position:absolute;
    inset:auto -20% -35% 35%;
    height:55%;
    background: radial-gradient(circle, rgba(255,255,255,0.18), transparent 60%);
}
.wrap-img .login-title{
    font-size: 36px;
    font-weight: 800;
    line-height: 1.1;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
}
.wrap-img .login-copy{
    max-width: 420px;
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.92;
}
.wrap-img img{
    width: 190px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

#pwd{
    position: relative;
}

.input-icon{
    position: absolute;
    left: 16px;
    bottom: 16px;
    color: #1f2937;
    font-size: 14px;
    z-index: 2;
}

.toggle-password{
    position: absolute;
    bottom: 0;
    right: 0;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #98a9b8;
    border-radius: 0 9px 9px 0;
    background: var(--secondaryLight);
    color: var(--gray);
    cursor: pointer;
}

.clear-password{
    position: absolute;
    bottom: 17px;
    right: 58px;
    display: none;
    border-radius: 50%;
    background-color: #000;
    color: var(--secondaryLight);
    font-size: 8px;
    padding: 1px 4px;
}

.modal{
    background-color: var(--wrap);
}
.modal, .modal-body, .modal-title{
    font-size: 14px;
}
.modal .form-field input{
    width: 100%;
    font-size: 14px;
    display: block;
    border: none;
    outline: none;
    background:none;
    color: #666;
    padding: 10px 15px 10px 10px;
    
}

.modal .form-field {
    padding-left: 10px;
    margin-bottom: 10px;
    border-radius: 13px;
    border: 1px solid var(--background);
   
}

.modal .form-field .fas {
    color: #555;
}

.modal .btn-login {
    box-shadow: none;
    width: 40%;
    height: 40px;
    background-color: var(--primaryRed);
    color: #fff;
    border-radius: 13px;
    box-shadow: 3px 3px 3px #b1b1b1,
        -3px -3px 3px #fff;
    font-size: 14px;
    text-transform: uppercase;
}

.modal .btn-login:hover {
    background-color: var(--primaryDark);
}
a{
    font-size: 14px;
    text-decoration: none;
    color: var(--blue);
}
a:hover{
    text-decoration: none;
    color: var(--primaryDark);
    cursor:pointer;
}

.alert-danger{
    border: none;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

@media(max-width: 767px){
    .login{
        padding: 1rem;
    }
    .wrap-img,
    .wrap-login{
        min-height: auto;
        border-radius: 16px;
    }
    .wrap-img{
        padding: 2rem;
    }
    .wrap-img .login-title{
        font-size: 30px;
        margin-top: 2rem;
    }
    .wrap-login{
        margin-top: 1rem;
        padding: 2rem 1.25rem;
    }
}

html,
body{
    min-height: 100%;
}

body{
    min-height: 100vh;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(0, 140, 227, 0.18), transparent 30%),
        linear-gradient(135deg, #f6fbff 0%, #edf8ff 100%);
}

.login-wrapper{
    width: min(100% - 2rem, 1120px);
    min-height: 520px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.login-left{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem;
    color: var(--secondaryLight);
    background:
        linear-gradient(135deg, rgba(0, 54, 79, 0.98), rgba(0, 140, 227, 0.92)),
        url('../img/logo_fondo.png') center/cover no-repeat;
}

.login-left .logo{
    width: 190px;
    max-width: 100%;
    object-fit: contain;
    margin-bottom: 3rem;
}

.login-left h1{
    margin: 0 0 1.25rem;
    font-size: 36px;
    font-weight: 800;
    line-height: 1.12;
}

.login-left p{
    max-width: 440px;
    margin: 0;
    font-size: 15px;
    line-height: 1.75;
    opacity: 0.94;
}

.login-right{
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 4rem 3.5rem;
    background: var(--secondaryLight);
}

.login-right h4{
    color: #1e293b;
    font-size: 24px;
    font-weight: 700;
}

.login-right .form-label{
    position: static;
    margin-bottom: 0.45rem;
    background: transparent;
    color: var(--gray);
    font-size: 13px;
    font-weight: 500;
    text-transform: none;
}

.login-wrapper .input-group{
    min-height: 48px;
}

.login-wrapper .input-group-text{
    width: 44px;
    justify-content: center;
    background: var(--inputBackground);
    border: 1px solid var(--borderLight);
    border-right: 0;
    color: #1f2937;
    border-radius: 10px 0 0 10px;
}

.login-wrapper .form-control{
    height: 48px;
    padding-left: 12px;
    background: var(--inputBackground);
    border: 1px solid var(--borderLight);
    color: #1e293b;
    font-size: 14px;
}

.login-wrapper .input-group .form-control{
    border-left: 0;
}

.login-wrapper .input-group .form-control:last-child{
    border-radius: 0 10px 10px 0;
}

.login-wrapper .input-group .btn-outline-secondary{
    width: 48px;
    height: 48px;
    border-color: #98a9b8;
    border-radius: 0 10px 10px 0;
    background: var(--secondaryLight);
    color: var(--gray);
}

.login-wrapper .input-group .btn-outline-secondary:hover{
    background: #f8fbfd;
    color: var(--primaryDark);
}

.login-wrapper .form-control:focus{
    border-color: var(--secondary);
    box-shadow: 0 0 0 4px rgba(0, 140, 227, 0.12);
}

.btn.btn-login,
.modal .btn-login{
    width: auto;
    min-height: 48px;
    padding: 0.7rem 1.25rem;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, var(--primaryDark), #005f88);
    color: var(--secondaryLight);
    font-size: 14px;
    font-weight: 700;
    text-transform: none;
    box-shadow: none;
}

.btn.btn-login:hover,
.modal .btn-login:hover{
    background: linear-gradient(135deg, #002f45, var(--primaryRed));
    color: var(--secondaryLight);
}

.forgot{
    color: var(--blue);
    font-size: 14px;
}

.forgot:hover{
    color: var(--primaryDark);
}

.modal .modal-content{
    border: 0;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.modal .modal-header{
    align-items: center;
    background: var(--secondaryLight);
    color: #1e293b;
    border-bottom: 1px solid var(--borderLight);
}

.modal .modal-header h5{
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}

.modal .modal-body .form-control{
    height: 48px;
    padding-left: 12px;
}

@media(max-width: 767px){
    body{
        padding: 1rem;
    }

    .login-wrapper{
        width: 100%;
        grid-template-columns: 1fr;
    }

    .login-left,
    .login-right{
        padding: 2rem;
    }

    .login-left .logo{
        margin-bottom: 2rem;
    }

    .login-left h1{
        font-size: 30px;
    }
}