body {
    min-height: 100vh;
    height: auto;
}

.container {
    min-height: 100vh;
    height: auto;
}

#particles-js-login-left,
#particles-js-login-right {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

#particles-js-login-left {
    background-color: rgba(0, 0, 0, 0.3);
}

#particles-js-login-right {
    background-color: rgba(255, 255, 255, 0.1);
}

.image-section > *:not(#particles-js-login-left),
.tfa-section > *:not(#particles-js-login-right) {
    position: relative;
    z-index: 1;
}

.tfa-section {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.tfa-container {
    background-color: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 500px;
}

.tfa-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.tfa-header h1 {
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
}

.tfa-header p {
    color: #0e0d0d;
    font-size: 0.9rem;
}

.tfa-header .logo {
    width: auto;
    height: 50px;
    margin-bottom: 1rem;
}

.field-wrapper input {
    padding-right: 2.75rem;
}

.password-visibility-toggle {
    position: absolute;
    top: 50%;
    right: 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: 0;
    background: transparent;
    color: #777;
    cursor: pointer;
    transform: translateY(-50%);
}

.password-visibility-toggle:hover,
.password-visibility-toggle:focus-visible {
    color: #4D6BFE;
}

.password-visibility-toggle:focus-visible {
    outline: 2px solid #4D6BFE;
    outline-offset: 2px;
}

.password-help {
    display: block;
    color: #777;
    font-size: 0.8rem;
}

.password-requirements {
    margin-top: 0.75rem;
}

.password-progress {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background-color: #e9ecef;
}

.password-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background-color: #dc3545;
    transition: width 180ms ease, background-color 180ms ease;
}

.password-progress-bar.is-complete {
    background-color: #28a745;
}

.password-progress-text {
    display: block;
    margin-top: 0.4rem;
}

.password-checklist {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.3rem 0.75rem;
    margin: 0.6rem 0 0;
    padding: 0;
    color: #777;
    font-size: 0.75rem;
    list-style: none;
}

.password-checklist li {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.password-checklist li i {
    font-size: 0.55rem;
}

.password-checklist li.is-met {
    color: #218838;
}

.password-checklist li.is-met i {
    font-size: 0.75rem;
}

.password-match {
    display: block;
    min-height: 1.2em;
    margin-top: 0.4rem;
    font-size: 0.8rem;
}

.password-match.is-match {
    color: #218838;
}

.password-match.is-mismatch {
    color: #c82333;
}

.password-validation-alert .swal2-html-container {
    white-space: pre-line;
}

.signature {
    margin-top: 1.5rem;
}

@media (max-width: 768px) {
    .tfa-section {
        flex: 0 0 100%;
        padding: 1rem;
    }

    .tfa-container {
        padding: 1.5rem;
    }

    .password-checklist {
        grid-template-columns: 1fr;
    }
}
