* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    overflow: hidden;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;
    background: #F2F5FC;
    color: #333;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    font-weight: 300;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overscroll-behavior-y: none;
    padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}



.grid-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100svh;

}

footer {
    width: 411px;
    max-width: 411px;
    display: flex;
    justify-content: center;
    height: 100%;
    margin-top: 5%;


}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 10px 0;
}

.footer-logo {
    display: flex;
    align-items: baseline;
    gap: 10px
}

.footer-version {
    font-size: 12px;
    color: #707070;
    margin-top: 10px;

}

.footer-links a {
    color: #3091DE;
    font-size: 12px;
    text-decoration: none;
}

.ylm-logo img {
    width: auto;
    height: 30px;
}

.forms-container {
    position: relative;
    margin-top: 25%;
    width: 420px;
    max-width: 420px;
    height: 600px;
    padding: 30px 40px 70px 40px;
    background: #fff;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);

}

.promotion {
    grid-row: span 3;
}

.options {
    display: grid;
    grid-template-rows: max-content 1fr max-content;
}

.top-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.sl-logo {
    width: 100px;
    height: 100%;

}

.choose-lang {
    display: flex;
    align-items: center;
    position: relative;
    padding: 8px;
    gap: 4px;
    font-size: 14px;
    background-color: #f5f3f3;
    border-radius: 4px;
    cursor: pointer;
}

.lang-menu.open {
    visibility: visible;
    opacity: 1;

}

.choose-lang span {
    width: 30px
}

.choose-lang-globe {
    width: 15px;
    height: 15px;
}

.choose-lang-down {
    width: auto;
    height: 4px;
}

.lang-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: absolute;
    width: 100%;
    top: 100%;
    left: 0;
    padding: 10px 0;
    gap: 8px;
    visibility: hidden;
    opacity: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.25);
    transition: opacity 0.1s ease-in-out;
    transition: transform 0.3s ease-in-out;
}

.lang-menu>span {
    width: 90%;
    padding: 8px;
    text-align: center;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.2s ease-in-out;
}


.login-form {
    width: 100%;
    color: black;
}

.logo {
    width: 100%;
    margin-bottom: 25px;
    margin-top: 25px;
    text-align: center;
}

.logo-img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 100px;
}

.field-container {
    width: 100%;
}

.label-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

input {
    width: 100%;
    height: 40px;
    font-size: 14px;
    padding: 8px;
    border-radius: 4px;
    background-color: white;
    border: solid 1px #707070;
    transition: all 0.2s ease-in-out;
}

input:hover {
    outline: none;
    border: solid 1px #3091DE;
    background-color: rgb(250, 250, 250);
}

input:focus {
    outline: none;
    border: solid 1px #3091DE;
    box-shadow: 0 0 0 1px #3091DE;
}

.password-input {
    position: relative;
}

.password-input input {
    padding-inline-end: 44px;
}

.password-toggle {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    border: 0;
    background: transparent;
    color: #59687d;
    cursor: pointer;
}

.password-toggle:hover,
.password-toggle:focus-visible {
    color: #3091DE;
}

.password-toggle:focus-visible {
    outline: 2px solid rgba(48, 145, 222, 0.35);
    outline-offset: -4px;
    border-radius: 4px;
}

.password-eye {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.password-eye-closed,
.password-toggle.is-visible .password-eye-open {
    display: none;
}

.password-toggle.is-visible .password-eye-closed {
    display: block;
}


.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    text-align: center;
}

.btn {
    width: 100%;
    height: 50px;
    margin-top: 40px;
    text-align: center;
    border: solid 1px transparent;
    border-radius: 4px;
    background-color: #3091DE;
    color: white;
    font-size: 18px;
    text-decoration: none;
    cursor: pointer;
}

.btn:hover {
    background-color: #1f6ab9;
    border: solid 1px #1f6ab9;
    transition: all 0.2s ease-in-out;
}

.btn[disabled] {
    background-color: #a0b9d3;
    border: solid 1px #a0b9d3;
    color: #666;
    cursor: not-allowed;
}

fieldset {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border: none;
}

label {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    line-height: 2em;
    color: #707070;
}

.tools {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tools a {
    color: #3091DE;
    font-size: 14px;
}

.error {
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    background-color: #FF593A;
    color: white;
    font-size: 14px;
}

.success {
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    background-color: #00B300;
    color: white;
    font-size: 14px;
}

.info {
    padding: 8px;
    text-align: center;
    border-radius: 4px;
    background-color: #29B6F6;
    color: white;
    font-size: 14px;
}

.success a {
    color: white;
    text-decoration: none;
}

.user-locked {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.user-locked svg {
    margin-top: 50px;
    margin-bottom: 50px;
}

.gdpr-line {
    position: absolute;
    bottom: 25px;
    margin-top: 10px;
    font-size: 12px;
}

.gdpr-line a {
    color: #333;
}


.lang-menu>span[lang] {
    display: block !important;
}

.lang-menu>span[lang].active {
    background-color: #3091DE;
    color: #fff;
}
.configurationError {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}
.configurationError > img{
     width: 400px;   
     max-width: 100%;
    padding: 10px;
   
}
.configurationError > h2{
    font-size:30px;
    color: #707070;
}
.configurationError > h3{
   font-size: 20px;
   color: #707070;
}
@media screen and (max-width: 450px) {
    
    .configurationError > h2{
        font-size:24px;
     
    }
    .configurationError > h3{
       font-size: 18px;
       
    }
    .error-link {
        font-size: 16px;
    }
    .error-link img {
        width: 10px;
        height: 10px;
    }
    
}
.error-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 10px;

}
.error-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 20px;
    color: #3091DE;
}
.error-link img {
    width: 15px;
    height: 15px;
}
#clear-menu {
    display: none;
    min-width: 190px;
    padding: 6px;
    background: white;
    text-align: start;
    bottom: calc(100% + 8px);
    left: auto;
    inset-inline-end: 0;
    position: absolute;
    box-shadow: 0 10px 28px rgba(20, 35, 55, 0.16);
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    z-index: 20;
}
#clear-menu.open {
    display: block;
}

#clear-menu span,
.settings-menu-item {
    display: block;
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #2b3f54;
    font: inherit;
    font-size: 12px;
    text-align: start;
    cursor: pointer;
}

#clear-menu span:hover,
.settings-menu-item:hover,
.settings-menu-item.is-active {
    background: #f2f5fc;
}

body.login-new-ui {
    --login-panel-min-height: 356px;
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 12% 82%, rgba(73, 132, 211, 0.15), transparent 30%),
        radial-gradient(circle at 88% 8%, rgba(73, 132, 211, 0.12), transparent 26%),
        #f2f5fc;
    color: #101828;
    font-family: sans-serif;
}

body.login-new-ui::before,
body.login-new-ui::after {
    content: "";
    position: fixed;
    pointer-events: none;
    border: 0;
    border-radius: 48px;
    display: none;
}

body.login-new-ui::before {
    width: 260px;
    height: 260px;
    left: 9vw;
    bottom: 12vh;
}

body.login-new-ui::after {
    width: 360px;
    height: 360px;
    right: -120px;
    top: -90px;
}

body.login-new-ui > * {
    position: relative;
    z-index: 1;
}

body.login-new-ui .grid-container {
    width: min(520px, calc(100vw - 32px));
    min-height: auto;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(204, 214, 228, 0.9);
    border-radius: 32px;
    box-shadow: 0 28px 90px rgba(28, 45, 74, 0.16);
    overflow: hidden;
}

body.login-new-ui .forms-container {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin-top: 0;
    padding: 30px 36px 26px;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

body.login-new-ui .forms-wrapper {
    display: flex;
    flex-direction: column;
}

body.login-new-ui .top-nav {
    justify-content: flex-end;
    margin-bottom: 16px;
}

body.login-new-ui .top-nav .sl-logo {
    display: none;
}

body.login-new-ui .choose-lang {
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: #2b3f54;
}

body.login-new-ui .lang-menu {
    border: 1px solid #dbe3ee;
    border-radius: 14px;
    box-shadow: 0 14px 32px rgba(28, 45, 74, 0.14);
}

body.login-new-ui .logo {
    margin: 0 0 22px;
    padding: 0;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 0;
}

body.login-new-ui .logo-img {
    display: block;
    margin: 0 auto;
    max-height: 94px;
    object-fit: contain;
}

body.login-new-ui .login-options {
    padding: 0;
}

body.login-new-ui .login-mode-tabs {
    gap: 0;
    margin-bottom: 0;
    padding: 0;
    overflow: hidden;
    border: 1px solid #dbe3ee;
    border-radius: 22px 22px 0 0;
    background: #fff;
}

body.login-new-ui .login-mode-tab {
    min-height: 54px;
    border-radius: 0;
    color: #42526a;
    font-size: 15px;
    font-weight: 600;
}

body.login-new-ui .login-mode-tab.active {
    background: #f7faff;
    color: #1f6fe5;
    box-shadow: inset 0 -2px 0 #2d74da;
}

body.login-new-ui #loginForm,
body.login-new-ui .external-providers,
body.login-new-ui #setNewPassword,
body.login-new-ui #resetPassword,
body.login-new-ui #sendUsername,
body.login-new-ui .loading,
body.login-new-ui [data-state-is="userLocked"] {
    padding: 22px 24px 24px;
    border: 1px solid #dbe3ee;
    border-top: 0;
    border-radius: 0 0 22px 22px;
    background: rgba(255, 255, 255, 0.82);
    min-height: var(--login-panel-min-height);
}

body.login-new-ui .loading,
body.login-new-ui [data-state-is="userLocked"] {
    position: relative;
}

body.login-new-ui .loading-content {
    align-items: center;
    display: flex;
    flex-direction: column;
    gap: 8px;
    left: 50%;
    position: absolute;
    text-align: center;
    top: 50%;
    transform: translate(-50%, -50%);
}

body.login-new-ui[data-state*="authenticating"] .loading,
body.login-new-ui[data-state*="loggingIn"] .loading,
body.login-new-ui[data-state*="success"] .loading,
body.login-new-ui[data-state*="resettingPassword"] .loading,
body.login-new-ui[data-state*="sendingUsername"] .loading {
    border-top: 1px solid #dbe3ee;
    border-radius: 22px;
}

body.login-new-ui .loading,
body.login-new-ui[data-state*="authenticating"] .loading,
body.login-new-ui[data-state*="loggingIn"] .loading,
body.login-new-ui[data-state*="success"] .loading,
body.login-new-ui[data-state*="resettingPassword"] .loading,
body.login-new-ui[data-state*="sendingUsername"] .loading {
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.login-new-ui .external-providers {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body.login-new-ui #loginForm {
    border: 0;
    border-radius: 0;
    background: transparent;
}

body.login-new-ui .external-providers > div {
    justify-content: center;
}

body.login-new-ui .field-container {
    margin-bottom: 8px;
}

body.login-new-ui label {
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

body.login-new-ui input {
    height: 48px;
    padding: 10px 14px;
    border: 1px solid #d4deea;
    border-radius: 16px;
    background: #fbfdff;
    color: #101828;
}

body.login-new-ui input:hover,
body.login-new-ui input:focus {
    border-color: #6ea3ee;
    background: #fff;
}

body.login-new-ui input:focus {
    box-shadow: 0 0 0 2px rgba(37, 114, 223, 0.22);
}

body.login-new-ui .password-input input {
    padding-inline-end: 48px;
}

body.login-new-ui .password-toggle {
    width: 48px;
    color: #66758a;
}

body.login-new-ui .tools a {
    color: #1f6fe5;
    font-size: 13px;
    text-decoration: none;
}

body.login-new-ui .btn,
body.login-new-ui .external-provider-btn {
    min-height: 48px;
    border-radius: 16px;
}

body.login-new-ui .btn {
    margin-top: 24px;
    background: #2572df;
    border-color: #2572df;
    color: #fff;
    box-shadow: 0 12px 24px rgba(37, 114, 223, 0.22);
}

body.login-new-ui .btn span {
    color: inherit;
}

body.login-new-ui .btn:hover {
    background: #1f65c9;
}

body.login-new-ui .btn[disabled] {
    background: #d9e3f0;
    border-color: #d9e3f0;
    box-shadow: none;
    color: #7b8798;
    cursor: not-allowed;
    opacity: 1;
}

body.login-new-ui .external-provider-btn {
    border-color: #dbe3ee;
    color: #1b2433;
}

body.login-new-ui .gdpr-line {
    position: static;
    margin-top: 16px;
    color: #69788d;
    line-height: 1.5;
}

body.login-new-ui .gdpr-line a {
    color: #4b647f;
}

.login-policy-modal[hidden] {
    display: none;
}

.login-policy-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 1000;
}

.login-policy-backdrop {
    background: rgba(15, 23, 42, 0.48);
    inset: 0;
    position: absolute;
}

.login-policy-dialog {
    background: #fff;
    border: 1px solid #dbe3ee;
    border-radius: 28px;
    box-shadow: 0 28px 90px rgba(15, 23, 42, 0.26);
    display: grid;
    grid-template-rows: auto 1fr;
    height: min(88vh, 840px);
    max-height: calc(100vh - 32px);
    max-width: 1120px;
    overflow: hidden;
    position: relative;
    width: min(94vw, 1120px);
    z-index: 1;
}

body.login-new-ui .login-policy-modal {
    position: fixed;
    z-index: 1000;
}

.login-policy-header {
    align-items: center;
    border-bottom: 1px solid #e2e8f2;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding: 18px 22px;
}

.login-policy-kicker {
    color: #718096;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-policy-header h2 {
    color: #172033;
    font-size: 24px;
    font-weight: 800;
    margin: 2px 0 0;
}

.login-policy-actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.login-policy-open,
.login-policy-close {
    align-items: center;
    background: #f8fafc;
    border: 1px solid #dbe3ee;
    border-radius: 999px;
    color: #2b3f54;
    display: inline-flex;
    min-height: 40px;
    padding: 0 14px;
    text-decoration: none;
}

.login-policy-open:hover,
.login-policy-close:hover {
    background: #eef4ff;
    color: #1f6fe5;
    text-decoration: none;
}

.login-policy-close {
    font-size: 26px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    width: 40px;
}

.login-policy-frame {
    background: #f8fafc;
    border: 0;
    display: block;
    height: 100%;
    min-height: 0;
    overflow: auto;
    width: 100%;
}

body.login-new-ui footer {
    width: 100%;
    max-width: none;
    height: auto;
    margin-top: 0;
    border-top: 1px solid #e2e8f2;
}

body.login-new-ui .footer-wrapper {
    width: 100%;
    padding: 14px 36px 18px;
}

body.login-new-ui .footer-logo {
    width: 100%;
    align-items: center;
    justify-content: space-between;
}

body.login-new-ui .footer-version {
    position: relative;
    margin-top: 0;
    color: #69788d;
}

body.login-new-ui #login-settings {
    position: relative !important;
    left: auto !important;
    bottom: auto !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px !important;
    height: 32px !important;
    margin-inline-start: 8px;
    border: 1px solid #dbe3ee;
    border-radius: 12px;
    background: #fff;
}

body.login-new-ui #clear-menu {
    position: absolute;
    inset-inline-end: 0;
    left: auto;
    bottom: 38px;
}

body.login-new-ui .error,
body.login-new-ui .success,
body.login-new-ui .info {
    border-radius: 16px;
}


@media screen and (max-width: 450px) {


    form,
    .loading {
        min-height: 200px;
    }

    .logo {
        width: 100%;
        margin-bottom: 10px !important;
        margin-top: 10px !important;
    }

    .forms-container {
        width: 350px;
        max-width: 350px;
        margin-top: 10%;
    }

    footer {
        width: 350px;
        max-width: 350px;
        margin-top: 1%;

    }

    .footer-wrapper {
        padding: 40px 20px;
    }

    .footer-version {
        font-size: 12px;
    }

    .footer-links a {
        font-size: 10px;
        color: #3091DE;
    }

    .tools a {
        font-size: 14px !important;
    }

.gdpr-line {
        max-width: 270px;
    }
}
.login-options {
    width: 100%;
}

.login-mode-tabs {
    display: none;
    gap: 4px;
    width: 100%;
    margin-bottom: 18px;
    padding: 4px;
    border: 1px solid #dbe3ee;
    border-radius: 8px;
    background-color: #f5f7fb;
}

.login-mode-tab {
    flex: 1;
    min-height: 40px;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    background-color: transparent;
    color: #5d6c7d;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.login-mode-tab.active {
    background-color: #fff;
    color: #1f6ab9;
    box-shadow: 0 1px 4px rgba(31, 64, 104, 0.18);
}

.login-mode-tab:focus-visible,
.external-provider-btn:focus-visible {
    outline: 2px solid #3091DE;
    outline-offset: 2px;
}

.external-providers >div{
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 12px;
}

.external-providers {
    width: 100%;
    margin-bottom: 10px;
}

.external-providers > label {
    justify-content: center;
    margin-bottom: 12px;
    text-align: center;
}

.external-provider-btn {
    width: 100%;
    min-height: 64px;
    padding: 10px 18px;
    border: 1px solid #d5dbe3;
    border-radius: 32px;
    background-color: #fff;
    color: #2b3f54;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.external-provider-btn:hover {
    border-color: #3091DE;
    box-shadow: 0 2px 8px rgba(48, 145, 222, 0.18);
}

.external-provider-btn img {
    width: auto;
    max-width: 170px;
    max-height: 48px;
    object-fit: contain;
}

.external-login-error {
    margin-bottom: 12px;
}
