html,
body {
    height: 100%;
    width: 100%;
    user-select: none;
    min-width: fit-content;

    font-family: var(--font-family);
    color: var(--text-color);
    background-color: var(--background-color);
    font-size: var(--font-size-2);
    line-height: var(--font-line-height-2);
    letter-spacing: var(--font-letter-spacing-2);
    font-weight: var(--font-weight-normal);
}

.hidden {
    display: none;
}

::-webkit-validation-bubble {
    display: none;
}

fieldset {
    border: none;
    border-radius: 30px;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

legend {
    padding: 50px 0 25px;

    color: var(--primary1-color);

    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-3);
    line-height: var(--font-line-height-3);
    letter-spacing: var(--font-letter-spacing-3);
}

form {
    width: 100%;
    text-align: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

button.btn {
    background-color: var(--primary1-color);

    padding: 5px 15px;

    --bs-btn-bg: var(--primary1-color);
    --bs-btn-border-color: var(--primary1-color);
    --bs-btn-hover-bg: var(--primary-light-color);
    --bs-btn-hover-border-color: var(--primary-light-color);
    --bs-btn-active-bg: var(--primary-light-color);
    --bs-btn-active-border-color: var(--primary-light-color);
    --bs-btn-disabled-bg: var(--primary1-color);
    --bs-btn-disabled-border-color: var(--primary1-color);
}

a {
    color: var(--text-color);
    font-weight: var(--font-weight-light);
    font-size: var(--font-size-1);
    line-height: var(--font-line-height-1);
    letter-spacing: var(--font-letter-spacing-1);
}

#noAccountBtn {
    color: var(--primary1-color);
    text-decoration: none;
    border: solid var(--primary1-color) 2px;
    border-radius: 30px;
    width: fit-content;
    padding: 5px 15px;
}

.bi-check-circle {
    color: var(--primary1-color);
    font-size: 50px;
}

.text-bold {
    font-weight: bold;
}

.form-group {
    width: 100%;
}

.form-group > input.form-control {
    color: var(--input-color);
    height: calc(3.5rem + -5px);
    padding: 0 30px;
}

input[type='checkbox'] {
    -webkit-appearance: none;
    appearance: none;
    margin: 0;

    cursor: pointer;
    font: inherit;
    color: currentColor;
    background-color: white;
    width: 1.15em;
    height: 1.15em;
    border: 1px solid currentColor;
    border-radius: 30px;
    transform: translateY(-0.075em);

    display: grid;
    place-content: center;
}

.remember-me {
    display: grid;
    line-height: 1.1;
    grid-template-columns: 1em auto;
    margin-left: 15px;
    gap: 1.5em;
}

.remember-me label {
    cursor: pointer;
    white-space: nowrap;
    width: min-content;
}

input[type='checkbox']::before {
    content: '';
    width: 0.65em;
    height: 0.65em;
    clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
    transform: scale(0);
    transform-origin: bottom left;
    transition: 120ms transform ease-in-out;
    box-shadow: inset 1em 1em black;
}

input[type='checkbox']:checked::before {
    transform: scale(1);
}

form:not(.pristine):not(.touched) input:invalid:not(:placeholder-shown) {
    background: var(--error-input-color) !important;
    border-color: var(--error-color);
}

html.in-iframe,
html.in-iframe body {
    background: transparent;
}

img.logo {
    width: 40%;
}

::-ms-reveal {
    display: none;
}

button#toggle-password {
    position: absolute;
    top: 3px;
    right: 4px;
    z-index: 9;
    width: 28px;
    height: 30px;
    background: 0;
    border: 0;
}

button#toggle-password:active,
button#toggle-password:focus,
button#toggle-password:hover {
    cursor: pointer;
}

button#toggle-password:focus {
    outline: none !important;
}

.input-password:has(+ button#toggle-password) {
    padding-right: calc(1.5em + 0.75rem);
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.input-password[type='text']:has(+ button#toggle-password):valid {
    background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709z'/%3E%3Cpath fill-rule='evenodd' d='M13.646 14.354l-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E") !important;
}

.input-password[type='password']:has(+ button#toggle-password):valid {
    background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='currentColor' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.134 13.134 0 0 0 1.66 2.043C4.12 11.332 5.88 12.5 8 12.5c2.12 0 3.879-1.168 5.168-2.457A13.134 13.134 0 0 0 14.828 8a13.133 13.133 0 0 0-1.66-2.043C11.879 4.668 10.119 3.5 8 3.5c-2.12 0-3.879 1.168-5.168 2.457A13.133 13.133 0 0 0 1.172 8z'/%3E%3Cpath fill-rule='evenodd' d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E") !important;
}

[data-bs-theme='dark'] .input-password[type='text']:has(+ button#toggle-password):valid {
    background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='%23adb5bd' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7.028 7.028 0 0 0-2.79.588l.77.771A5.944 5.944 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13.134 13.134 0 0 1 14.828 8c-.058.087-.122.183-.195.288-.335.48-.83 1.12-1.465 1.755-.165.165-.337.328-.517.486l.708.709z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829l.822.822zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829z'/%3E%3Cpath d='M3.35 5.47c-.18.16-.353.322-.518.487A13.134 13.134 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7.029 7.029 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709z'/%3E%3Cpath fill-rule='evenodd' d='M13.646 14.354l-12-12 .708-.708 12 12-.708.708z'/%3E%3C/svg%3E") !important;
}
[data-bs-theme='dark'] .input-password[type='password']:has(+ button#toggle-password):valid {
    background-image: url("data:image/svg+xml,%3Csvg width='1em' height='1em' viewBox='0 0 16 16' fill='%23adb5bd' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8zM1.173 8a13.134 13.134 0 0 0 1.66 2.043C4.12 11.332 5.88 12.5 8 12.5c2.12 0 3.879-1.168 5.168-2.457A13.134 13.134 0 0 0 14.828 8a13.133 13.133 0 0 0-1.66-2.043C11.879 4.668 10.119 3.5 8 3.5c-2.12 0-3.879 1.168-5.168 2.457A13.133 13.133 0 0 0 1.172 8z'/%3E%3Cpath fill-rule='evenodd' d='M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5zM4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0z'/%3E%3C/svg%3E") !important;
}

.toast {
    z-index: 1;
}

/*Information Icon*/
.bi-info-circle-fill {
    color: var(--primary1-color);
    position: absolute;
    bottom: 10px;
    right: 20px;
    cursor: pointer;
}

.tooltip-text {
    visibility: hidden;
    width: auto;
    background-color: var(--primary1-color);
    color: var(--background-color);
    text-align: center;
    border-radius: 4px;
    padding: 8px;
    position: absolute;
    z-index: 1;
    right: 50%;
    transform: translateY(-110%);
    opacity: 0;
    transition: opacity 0.9s ease-in-out;
    white-space: nowrap;
}

.bi-info-circle-fill:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}
