/* Login isolato: non dipende dal tema Bootstrap 3 delle pagine interne. */
@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("fonts/Lato-Regular.ttf") format("truetype");
}

@font-face {
    font-family: "Lato";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("fonts/Lato-Bold.ttf") format("truetype");
}

.login-page {
    margin: 0;
    min-width: 280px;
    min-height: 100vh;
    color: #656d78;
    background: #e8e9ee;
    font-family: "Lato", Calibri, Arial, sans-serif;
    font-size: 13px;
    line-height: 1.5;
}

.login-page [hidden] {
    display: none !important;
}

.login-shell {
    padding: 60px 12px 32px;
}

.login-box {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    padding-bottom: 20px;
    border-radius: 3px;
    background: #133c45;
}

.login-logo {
    padding: 15px 0 10px;
    text-align: center;
}

.login-logo img {
    display: inline-block;
    max-width: 100%;
    height: auto;
    border: 0;
}

.login-box hr {
    width: 70%;
    margin: 10px auto 20px;
    border: 0;
    border-top: 1px solid rgb(0 0 0 / 13%);
    border-bottom: 1px solid rgb(255 255 255 / 15%);
    opacity: 1;
}

.login-form {
    width: calc(100% - 32px);
    max-width: 320px;
    margin: 0 auto;
}

.login-field {
    margin-bottom: 15px;
}

.login-page .form-control,
.login-page .input-group-text {
    min-height: 36px;
    border-color: #ddd;
    border-radius: 0;
    font-size: 14px;
}

.login-page .form-control {
    min-width: 0;
    padding: 6px 12px;
    color: #555;
    background: #fff;
    box-shadow: none;
}

.login-page .form-control:focus {
    border-color: #34adad;
    box-shadow: 0 0 0 2px rgb(52 173 173 / 25%);
}

.login-page .input-group-text {
    width: 39px;
    justify-content: center;
    padding: 6px 10px;
    color: #656d78;
    background: #eee;
}

.login-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.login-page .password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    padding: 6px 10px;
    border: 1px solid #ddd;
    border-left: 0;
    border-radius: 0;
    color: #656d78;
    background: #fff;
}

.password-eye-slash {
    display: none;
}

.password-toggle[aria-pressed="true"] .password-eye-slash {
    display: block;
}

.login-page .password-toggle:hover {
    color: #133c45;
    background: #f4f7f8;
}

.field-error {
    margin: 5px 0 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.login-box .field-error {
    color: #ffd9c7;
}

.login-page .modal .field-error {
    color: #b42318;
}

.login-page .form-control.is-invalid {
    border-color: #d44738;
    background-image: none;
}

.login-captcha-frame {
    display: flex;
    justify-content: center;
    min-height: 78px;
    max-width: 100%;
    overflow-x: auto;
}

.captcha-loading {
    margin: 6px 0 0;
    color: #fff;
    text-align: center;
}

.login-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.login-recovery-link {
    min-height: 36px;
    padding: 4px 0;
    border: 0;
    color: #fff;
    background: transparent;
    font: inherit;
    text-align: left;
    text-underline-offset: 3px;
}

.login-recovery-link:hover {
    text-decoration: underline;
}

.login-page .btn-sm {
    min-height: 36px;
    padding: 6px 10px 5px;
    border-radius: 2px;
    font-size: 12px;
}

.login-page .btn-info {
    --bs-btn-color: #fff;
    --bs-btn-bg: #247c7c;
    --bs-btn-border-color: #247c7c;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #216f6f;
    --bs-btn-hover-border-color: #216f6f;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #1b5e5e;
    --bs-btn-active-border-color: #1b5e5e;
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #247c7c;
    --bs-btn-disabled-border-color: #247c7c;
}

.login-page .btn-primary {
    --bs-btn-color: #fff;
    --bs-btn-bg: #174955;
    --bs-btn-border-color: #174955;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #133c45;
    --bs-btn-hover-border-color: #133c45;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #133c45;
    --bs-btn-active-border-color: #133c45;
    --bs-btn-disabled-bg: #174955;
    --bs-btn-disabled-border-color: #174955;
}

.login-page :is(button, a, input, [tabindex]):focus-visible {
    outline: 3px solid #eab86a;
    outline-offset: 3px;
}

.login-page .spinner-border {
    margin-left: 6px;
    vertical-align: middle;
}

.login-page .modal-dialog {
    --bs-modal-width: 600px;
}

.login-page .modal-content {
    border-radius: 0;
}

.login-page .modal-header {
    padding: 10px 15px;
    color: #fff;
    background: #247c7c;
}

.login-page .modal-title {
    font-size: 16px;
    font-weight: 700;
}

.login-page .modal-body {
    padding: 20px 24px;
}

.login-page .modal-footer {
    padding: 6px 15px;
}

.login-page .form-label {
    font-weight: 700;
}

.recovery-status {
    margin: 16px 0 0;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .login-shell {
        padding-top: 32px;
    }

    .login-page .form-control {
        min-height: 44px;
        font-size: 16px;
    }

    .login-page .btn-sm,
    .login-recovery-link,
    .login-page .password-toggle {
        min-height: 44px;
    }

    .login-page .password-toggle {
        min-width: 44px;
    }

    .login-page .modal-body {
        padding: 18px 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-page .spinner-border {
        animation-duration: 1.5s;
    }
}
