* {
    outline: none;
}

body {
    margin: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #2b3346;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

html {
    margin: 0px;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 400;
    height: 100%;
}

a {
    text-decoration: none;
}

h1,
h2,
ul,
p {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

.pageWidth {
    max-width: 1100px;
    margin: 0px auto;
    position: relative;
}

#login {
    display: flex;
    flex-direction: row;
}

#login .access {
    /* background-color: #0A0; */
    width: 50%;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-content: center;
    justify-content: center;
}

#login .access .wrapper {
    padding: 10px;
    margin: 0 auto 0 auto;
    /* max-height: 100%; */
}

#login .access .wrapper2 {
    width: 100%;
    box-sizing: border-box;
    max-height: 100%;
}

#login .brand {
    background: rgb(2, 206, 255);
    background: -moz-linear-gradient(top, rgba(2, 206, 255, 1) 0%, rgba(161, 119, 255, 1) 100%);
    background: -webkit-linear-gradient(top, rgba(2, 206, 255, 1) 0%, rgba(161, 119, 255, 1) 100%);
    background: linear-gradient(to bottom, rgba(2, 206, 255, 1) 0%, rgba(161, 119, 255, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#02ceff', endColorstr='#a177ff', GradientType=0);

    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eff0f1;
    -webkit-transition: background 0.2s ease-in-out;
    transition: background 0.2s ease-in-out;
}

#login h2 {
    color: #000;
    font-weight: 700;
    font-size: clamp(1.9rem, 7vw, 2.9rem);
    margin-bottom: 2px;
}

#login.syngenta-login {
    min-height: 100vh;
}

#login.syngenta-login .access {
    padding-top: 2rem;
}

#login.syngenta-login h2 {
    transition: none;
    -webkit-transition: none;
    background-image: url(img/login_syngenta.png);
    background-size: cover;
    margin: 0;
}

#login.syngenta-login .google,
#login.syngenta-login #select-lang {
    display: none;
}

#login.syngenta-login #btn-syngenta {
    display: block !important;
}

#login.goyaike-login .google,
#login.goyaike-login #select-lang {
    display: none;
}

#login.goyaike-login #azure-login {
    display: block !important;
    width: 100%;
}


#login h1 {
    color: #000;
    text-align: center;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: clamp(1.4rem, 5vw, 1.4rem);
    font-family: 'Montserrat', sans-serif;
}

#login .google {
    color: #A1A4AA;
    font-weight: 500;
    font-size: 15px;
    border-radius: 6px;
    background: #EFF0F1;
    width: 100%;
    background-size: 20px auto;
    transition: all .3s;
    border: none;
    font-family: 'Montserrat', sans-serif;
    margin: 10px 0 0 0;
    display: flex;
    justify-content: center;
    padding: 7px 18px;
    align-items: center;
}

.text-google {
    display: flex;
    align-items: center;
    margin: 0;
}

.img-google {
    height: 20px;
    width: 20px;
    margin-right: 6px;
}

#login .go {
    background: url("https://go.finneg.com/favicon.ico");
    background-repeat: no-repeat;
    background-position-y: center;
    background-position-x: 6px;
    background-size: 24px;
}

#login .google:hover {
    /*     box-shadow: 0 2px 4px #00000040; */
    background-color: #E1E2E4;
    color: #898E95;
    transition: none;
    cursor: pointer;
}

#login .serviceStatusRedirect:hover {
    cursor: pointer;
    text-decoration: underline;
}

#login .serviceStatusRedirect {
    color: #1AAFD0;
    font-weight: 500;
    font-size: 15px;
    transition: all .3s;
    font-family: 'Montserrat', sans-serif;
    margin: 0 auto;
    margin-top: 20px;
    text-decoration: none;
    text-align: center;
}

@media (max-height: 670px) {
    html {
        height: auto;
    }

    .form-group {
        padding-bottom: .7rem;
    }
}

#login form {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    /* margin-top: 4px; */
    /* visibility: hidden; */
}

#login input[type="text"],
#login input[type="password"],
#login select {
    margin-bottom: 4px;
    margin-top: 5px;
    display: inline-block;
    height: 33px;
    box-sizing: border-box;
    font-size: 14px;
    border-radius: 6px !important;
    width: 100%;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

#login input[type="text"],
#login input[type="password"] {
    padding-right: 5px;
}

#login select {
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url("img/popup_control.svg") no-repeat right 7px top 7px;
}

#login input[type="text"]:active,
#login input[type="password"]:active,
#login select:active {
    outline: none;
}

#login input[type="text"]:focus,
#login input[type="password"]:focus,
#login select:focus {
    border-bottom: 1px solid #B9BCC0;
    outline: none;
}

#login input[type="text"]:hover,
#login input[type="password"]:hover,
#login select:hover {
    cursor: pointer;
}

.form-group label {
    color: #686e76;
    font-size: .8rem;
    font-weight: bold;
    user-select: none;
}

.form-group {
    width: 100%;
    padding-bottom: 1rem;
}

#select-lang {
    margin-bottom: 20px;
}

#pwd-recovery-label {
    color: #686e76;
    cursor: pointer;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    margin-left: 5px;
}

#pwd-recovery-label:hover {
    color: #aaa;
}

::-webkit-input-placeholder {
    /* Chrome/Opera/Safari */
    color: #CDCFD2;
}

::-moz-placeholder {
    /* Firefox 19+ */
    color: #CDCFD2;
}

:-ms-input-placeholder {
    /* IE 10+ */
    color: #CDCFD2;
}

:-moz-placeholder {
    /* Firefox 18- */
    color: #CDCFD2;
}

#login input[type="submit"].button,
#login input[type="button"].button {
    display: inline-block;
    width: 100%;
    color: #FFFFFF;
    text-decoration: none;
    font-size: clamp(1.0rem, 3vw, 1.1rem);
    line-height: 1.4em;
    margin-top: 0px;
    margin-bottom: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 7px 18px;
    border-radius: 6px;
    text-align: center;
    border: none;
    background: rgb(255, 203, 0);
    background: -moz-linear-gradient(270deg, rgba(255, 203, 0, 1) 0%, rgba(246, 147, 0, 1) 50%, rgba(255, 109, 139, 1) 100%);
    background: -webkit-linear-gradient(270deg, rgba(255, 203, 0, 1) 0%, rgba(246, 147, 0, 1) 50%, rgba(255, 109, 139, 1) 100%);
    background: linear-gradient(270deg, rgba(255, 203, 0, 1) 0%, rgba(246, 147, 0, 1) 50%, rgba(255, 109, 139, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffcb00", endColorstr="#ff6d8b", GradientType=1);
    transition: all .2s;
}

#login input[type="submit"].button:hover,
#login input[type="button"].button:hover {
    /*     box-shadow: 0 2px 4px #00000040; */
    background: rgb(228, 182, 0);
    background: -moz-linear-gradient(270deg, rgba(228, 182, 0, 1) 0%, rgba(232, 139, 0, 1) 50%, rgba(223, 96, 122, 1) 100%);
    background: -webkit-linear-gradient(270deg, rgba(228, 182, 0, 1) 0%, rgba(232, 139, 0, 1) 50%, rgba(223, 96, 122, 1) 100%);
    background: linear-gradient(270deg, rgba(228, 182, 0, 1) 0%, rgba(232, 139, 0, 1) 50%, rgba(223, 96, 122, 1) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#e4b600", endColorstr="#df607a", GradientType=1);
    transition: none;
}

/* Selector personalizado */
.wrapperDropdown {
    position: relative;
    /* width: 200px; */
    display: inline-block;
    margin: 0 auto 0 0;
    /* padding: 5px 22px 5px 10px; */
    background: #fff;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    outline: none;
    /* font-size: 15px; */
    /* line-height: 19px; */
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    text-align: left;
    margin-top: 16px;
    margin-bottom: 20px;
}

.wrapperDropdown:hover {
    background-color: #f8f8f8
}

.wrapperDropdown:after {
    content: "";
    width: 0;
    height: 0;
    position: absolute;
    right: 6px;
    top: 55%;
    margin-top: -3px;
    border-width: 5px 4px 0 5px;
    border-style: solid;
    border-color: #000 transparent;
}

.wrapperDropdown .dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border-radius: inherit;
    border: 1px solid rgba(0, 0, 0, 0.17);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    font-weight: normal;
    opacity: 0;
    pointer-events: none;
    -webkit-transition: all 0.25s ease-in;
    -moz-transition: all 0.25s ease-in;
    -ms-transition: all 0.25s ease-in;
    -o-transition: all 0.25s ease-in;
    transition: all 0.25s ease-in;
    list-style: none;
}

.wrapperDropdown span,
.wrapperDropdown .dropdown li a {
    display: block;
    padding: 2px 10px 4px 6px;
    text-decoration: none;
    font-size: 14px;
    /* line-height: 19px; */
    font-weight: 400;
    white-space: nowrap;
    position: relative;
    /* height: 20px; */
    color: #2b3346;
}

.dropdown li a {
    padding: 7px 10px 8px 25px;

}

.wrapperDropdown span {
    padding-right: 20px;
}

.wrapperDropdown .dropdown li a {
    background-color: #f8f8f8;
    border-bottom: 1px solid #e6e8ea;
}


.wrapperDropdown .dropdown li i {
    float: right;
    color: inherit;
}

.wrapperDropdown .dropdown li:first-of-type a {
    border-radius: 7px 7px 0 0;
}

.wrapperDropdown .dropdown li:last-of-type a {
    border: none;
    border-radius: 0 0 7px 7px;
}

/* Hover state */
.wrapperDropdown .dropdown li:hover a {
    background: #e6e6e6;
}

/* Active state */
.wrapperDropdown.active .dropdown {
    opacity: 1;
    pointer-events: auto;
    -webkit-transition: all 0s ease-in;
    -moz-transition: all 0s ease-in;
    -ms-transition: all 0s ease-in;
    -o-transition: all 0s ease-in;
    transition: all 0s ease-in;
}

@media screen and (max-width: 800px) {
    #login {
        display: flex;
        flex-direction: column;
        height: auto;
    }

    #login .brand {
        display: none;
    }

    #login .access {
        width: 100%;
        justify-content: flex-start;
        padding-top: 60px;
        /* ELIMINADO */
        padding: 60px 0;
        /* NUEVO */
        flex: auto;
        height: auto;
    }

    #login h2 {
        width: 154px;
        height: 30px;
        background-size: contain;
    }

    #login .serviceStatusRedirect {
        position: relative;
        bottom: auto;
    }
}

@media screen and (max-width: 255px) {
    #login h1 {
        width: 100%;
        text-align: center;
        display: block;
    }

    #login input[type="submit"] {
        margin: 21px auto 0 auto;
    }
}

/* #error { */
#error,
#alerts-tags {
    color: #E63B3B;
    text-align: center;
    border: 1px solid #E63B3B;
    padding: 5px;
    font-size: 14px;
    border-radius: 6px;
    margin: 0 auto 25px auto;
    width: 100%;
    box-sizing: border-box;
    font-weight: 600;
}

#loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 70px;
    background: url("img/loading.gif") no-repeat center center;
    display: none;
}

.news-iframe {
    display: flex;
    flex: 1;
}

#login .access {
    flex: 1;
}

#login .access .wrapper {
    display: flex;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    max-width: 350px;
    margin-top: 45px;
}

#login .access .wrapper > img:first-child {
    width: 100%;
    height: auto;
    margin: 0 0 45px 0;
}

.eye-toggle{
    position: absolute;
    top: 50%;
    transform: translate(-150%, -45%);
    color: #aaa;
}

@media screen and (max-height: 600px) {

    .form-group label {
        font-size: .65rem;
    }

    #login .access {
        overflow-x: auto;
        justify-content: flex-start;
    }

    #login .access .wrapper {
        flex: 1;
        /*padding: 50px 0;*/
        max-height: initial;
        margin-top: 0;
    }

    #login input[type="text"], #login input[type="password"], #login select{
        margin-bottom: 4px;
        margin-top: 4px;
        height: 28px;
        font-size: 12px;
    }
    #login input[type="submit"].button, #login input[type="button"].button{
        margin-bottom: 0;
    }

    #login .access .wrapper > img:first-child{
        margin-bottom: 15px !important;
    }

    .form-group{
        padding-bottom: 0;
    }
}

@media screen and (max-width: 768px) {
    .news-iframe {
        display: block;
        height: calc(100vh * 0.8);
        flex: none;
    }
}

#text-center {
text-align: center;
}

#closeButton{
margin: -0.5rem;
}

.img-sso {
height: 20px;
width: 20px;
margin-right: 6px;
}

.text-sso {
display: flex;
align-items: center;
margin: 0;
}

/* Estilos para el modal de ayuda */
#helpModal .btn-outline-success {
    color: #37C597;
    border-color: #37C597;
    background-color: white;
}

#helpModal .btn-outline-success:hover {
    color: white;
    background-color: #37C597;
    border-color: #37C597;
}

#helpModal .btn-success {
    background-color: #37C597;
    border-color: #37C597;
    color: white;
}

#helpModal .btn-success:hover {
    background-color: #2da883;
    border-color: #2da883;
}

#helpModal .btn-secondary {
    background-color: #a8d5c2;
    border-color: #a8d5c2;
    color: white;
}

#helpModal {
    font-family: 'Montserrat', sans-serif;
}

#helpModal .modal-dialog {
    max-width: 625px;
    width: 625px;
}

#helpModal .modal-content {
    min-height: 400px;
    padding: 1rem 2rem;
}

#helpModal .modal-header {
    padding: 0;
}

#helpModal h5 {
    padding: 1rem 0;
}

#helpModal .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    padding: 0;
    z-index: 1;
    font-size: 0.8rem;
}

#helpModal .modal-footer {
    padding: 0;
}

#helpModal .modal-body {
    padding: 0;
}

#helpModal .form-group label {
    font-size: .8rem;
    color: #000;
    font-weight: normal;
}

#helpModal .body-text {
    font-size: 15px;
}

#helpModal #helpForm {
    padding: 1rem 0;
}

/* Estilos para el modal de éxito */
#successModal {
    font-family: 'Montserrat', sans-serif;
    color: #000;
}

#successModal .modal-dialog {
    max-width: 600px;
    width: 600px;
}

#successModal .modal-content {
    border-radius: 6px;
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

#successModal .modal-header {
    padding: 1.5rem 1.5rem 0;
    border: none;
}

#successModal .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    margin: 1rem;
    padding: 0;
    z-index: 1;
    font-size: 0.8rem;
}

#successModal .btn-close:hover {
    opacity: 1;
}

#successModal .modal-body {
    padding: 0 1.5rem 1.5rem;
}

#successModal h5 {
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

#successModal p {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 0;
}

#successModal p:last-of-type {
    margin-bottom: 2rem;
}

#successModal .btn-success {
    background-color: #37C597;
    border-color: #37C597;
    color: white;
    font-weight: 500;
    font-size: 14px;
}

#successModal .btn-success:hover {
    background-color: #2da883;
    border-color: #2da883;
}

#successModal .modal-title {
    padding: 1rem 0;
}
/* Modales de política de contraseña (obligatorio y período de gracia) */
#passwordPolicyModal,
#passwordPolicyGraceModal {
	--ppm-font-family: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
	--ppm-text: #101828;
	--ppm-brand: #057DB8;
	--ppm-brand-hover: #046a9f;
	--ppm-padding-x: 24px;
}

#passwordPolicyModal .modal-dialog,
#passwordPolicyGraceModal .modal-dialog {
	max-width: 620px;
	width: 95%;
}

@media (min-width: 768px) {
	#passwordPolicyModal .modal-dialog,
	#passwordPolicyGraceModal .modal-dialog {
		width: 620px;
	}
}

.password-policy-grace-content {
	font-family: var(--ppm-font-family);
	color: var(--ppm-text);
	border: 0;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(16, 24, 40, 0.18);
}

.password-policy-grace-content .modal-header {
	padding: var(--ppm-padding-x) var(--ppm-padding-x) 8px var(--ppm-padding-x);
}

.password-policy-grace-content .modal-title {
	font-family: var(--ppm-font-family);
	font-size: 20px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--ppm-text);
}

.password-policy-grace-body {
	padding: 0 var(--ppm-padding-x) var(--ppm-padding-x) var(--ppm-padding-x);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.25;
}

.password-policy-grace-body p {
	margin-bottom: 16px;
	color: var(--ppm-text);
}

.password-policy-grace-body strong {
	font-weight: 700;
}

.password-policy-grace-body a {
	color: var(--ppm-brand);
	font-weight: 700;
	text-decoration: none;
}

.password-policy-grace-body a:hover,
.password-policy-grace-body a:focus {
	color: var(--ppm-brand-hover);
	text-decoration: underline;
}

.password-policy-instructions .password-policy-instructions-title {
	margin-bottom: 4px;
	font-weight: 700;
}

.password-policy-instructions ol {
	margin-bottom: 0;
	padding-left: 16px;
}

.password-policy-instructions ol li {
	margin-bottom: 0;
}

.password-policy-grace-content .modal-footer {
	padding: 16px var(--ppm-padding-x) 20px var(--ppm-padding-x);
	border-top: 1px solid rgba(16, 24, 40, 0.12);
}

#passwordPolicyAcceptBtn,
#passwordPolicyRedirectBtn {
	font-family: var(--ppm-font-family);
	font-size: 14px;
	font-weight: 700;
	line-height: 1.2;
	padding: 8px 18px;
	border-radius: 8px;
	color: #fff;
	background-color: var(--ppm-brand);
	border-color: var(--ppm-brand);
}

#passwordPolicyAcceptBtn:hover,
#passwordPolicyRedirectBtn:hover {
	background-color: var(--ppm-brand-hover);
	border-color: var(--ppm-brand-hover);
}

#passwordPolicyAcceptBtn:focus,
#passwordPolicyRedirectBtn:focus {
	background-color: var(--ppm-brand-hover);
	border-color: var(--ppm-brand-hover);
	box-shadow: 0 0 0 0.25rem rgba(5, 125, 184, 0.5);
}
