:root {
    --ICO-Azul: #0B4460;
    --ICO-Texto-negro: #141414;
    --ICO-texto-mate: #343737;
    --ICO-Celeste: #459CD6;
    --ICO-Gris: #A4A4A4;
    --Gray-100: #E4E7E9;
    --Gray-00: #FFF;
}

body {
    font-family: "Avenir Next LT Pro", sans-serif;
    background-color: var(--Gray-00, #FFF);
}

.login-b2b-wrapper {
    width: 100%;
    max-width: 1184px;
    margin: 0 auto;
    padding: 32px 24px 40px;
    box-sizing: border-box;
}

.login-b2b-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.login-title {
    color: var(--ICO-Azul, #0B4460);
    font-family: "Avenir Next LT Pro";
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0 0 12px 0;
}

.login-subtitle {
    color: var(--ICO-Texto-negro, #141414);
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 150%;
    margin: 0 0 40px 0;
    max-width: 700px;
}

.login-card {
    display: flex;
    width: 630px;
    padding: 32px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 32px;
    border-radius: 10px;
    border: 1px solid #E2E2E2;
    background: #F6F9FA;
    box-sizing: border-box;
    margin: 0 auto;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    color: var(--ICO-texto-mate, #343737);
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
}

.form-group input {
    height: 44px;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid var(--Gray-100, #E4E7E9);
    background: var(--Gray-00, #FFF);
    padding: 0 14px;
    box-sizing: border-box;
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
}

.label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.recover-link {
    color: var(--ICO-Celeste, #459CD6);
    font-family: "Avenir Next LT Pro";
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: 20px;
    text-decoration: none;
}

.input-icon-wrapper {
    position: relative;
    width: 100%;
}

.input-icon-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.input-icon-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.input-icon {
    width: 20px;
    height: 20px;
}

.login-submit-btn {
    display: flex;
    margin-top: 16px;
    padding: 0 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    align-self: stretch;
    border-radius: 26px;
    border: none;
    height: 52px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
}

.login-submit-btn.active {
    background: var(--ICO-Azul, #0B4460);
    color: var(--Gray-00, #FFF);
}

.login-submit-btn.inactive,
.login-submit-btn:disabled {
    background: #EAEAEA;
    color: #A4A4A4;
    cursor: not-allowed;
}

.login-divider {
    width: 100%;
    height: 1px;
    background: #EAEAEA;
    margin-top: 16px;
}

.register-cta {
    margin: 0;
    color: var(--ICO-texto-mate, #343737);
    text-align: center;
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.register-link {
    color: var(--ICO-Azul, #0B4460);
    font-family: "Avenir Next LT Pro";
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
}

@media (max-width: 768px) {
    .login-b2b-content {
        align-items: flex-start;
    }

    .login-card {
        min-width: 327px;
        width: 100%;
        padding: 24px;
        gap: 24px;
        border: 1px solid var(--ICO-Gris, #A4A4A4);
    }

    .form-group input {
        width: 100%;
    }

    .login-submit-btn {
        width: 100%;
        align-self: center;
    }

    .login-b2b-wrapper {
        padding: 100px 24px 40px !important;
    }
}


/* ICO B2B fixes */
.ico-b2b-auth-page a.btn-entry,
.ico-b2b-auth-page a.btn-entry:visited,
.ico-b2b-auth-page .btn-entry,
.ico-b2b-auth-page .btn-entry:visited,
.ico-b2b-auth-page .login-submit-btn.active,
.ico-b2b-auth-page .login-submit-btn.active:visited,
.ico-b2b-auth-page .recover-submit-btn.active,
.ico-b2b-auth-page .reset-submit-btn.active,
.ico-b2b-auth-page .submit-btn.active,
.ico-b2b-auth-page .submit-btn.active:visited {
    color: #FFF !important;
}
.ico-b2b-auth-page a.btn-entry span,
.ico-b2b-auth-page a.btn-entry:visited span {
    color: #FFF !important;
}
.ico-b2b-auth-page .ico-b2b-form-alert-success {
    border: 1px solid #b7e4c7;
    background: #f0fff4;
    color: #166534;
}


/* ICO B2B auth color + visited state fix */
.ico-b2b-auth-page .btn-entry,
.ico-b2b-auth-page .btn-entry:link,
.ico-b2b-auth-page .btn-entry:visited,
.ico-b2b-auth-page .btn-entry:hover,
.ico-b2b-auth-page .btn-entry:focus,
.ico-b2b-auth-page .btn-entry:active,
.ico-b2b-auth-page .btn-entry span,
.ico-b2b-auth-page .btn-entry:visited span,
.ico-b2b-auth-page .login-submit-btn.active,
.ico-b2b-auth-page .recover-submit-btn.active,
.ico-b2b-auth-page .reset-submit-btn.active,
.ico-b2b-auth-page .submit-btn.active {
	color: #ffffff !important;
}
.ico-b2b-auth-page .recover-link,
.ico-b2b-auth-page .recover-link:link,
.ico-b2b-auth-page .recover-link:visited,
.ico-b2b-auth-page .recover-link:hover,
.ico-b2b-auth-page .recover-link:focus {
	color: #459CD6 !important;
}
.ico-b2b-auth-page .register-link,
.ico-b2b-auth-page .register-link:link,
.ico-b2b-auth-page .register-link:visited,
.ico-b2b-auth-page .register-link:hover,
.ico-b2b-auth-page .register-link:focus {
	color: #0B4460 !important;
}
.ico-b2b-auth-page .back-login-link,
.ico-b2b-auth-page .back-login-link:link,
.ico-b2b-auth-page .back-login-link:visited,
.ico-b2b-auth-page .back-login-link:hover,
.ico-b2b-auth-page .back-login-link:focus {
	color: #414141 !important;
}


/* RT Fix 2026-06-16: usar offset dinámico del header; sin espacio artificial */
@media (max-width: 768px) {
    .login-b2b-wrapper {
        padding-top: 24px !important;
    }
}

