/* EWER v28: account activation retirement, system branding and watermark */
#appScreen,
.auth-container,
#verify2faScreen {
    position: relative;
    isolation: isolate;
}

#appMain,
.auth-container {
    background-image:
        linear-gradient(rgba(248, 250, 255, .955), rgba(248, 250, 255, .955)),
        url('/static/images/hrc-logo.jpg');
    background-position: center;
    background-repeat: no-repeat;
    background-size: auto, clamp(260px, 38vw, 620px);
    background-attachment: fixed;
}

body.dark-mode #appMain,
body.dark-mode .auth-container {
    background-image:
        linear-gradient(rgba(15, 23, 42, .955), rgba(15, 23, 42, .955)),
        url('/static/images/hrc-logo.jpg');
}

.auth-card-premium {
    position: relative;
    z-index: 1;
}

.auth-system-footer,
.system-app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: .38rem;
    color: var(--text-muted, #718096);
    text-align: center;
}

.auth-system-footer {
    margin-top: 1.25rem;
    padding-top: .9rem;
    border-top: 1px solid var(--border-color, #dfe6f1);
}

.system-app-footer {
    margin-top: auto;
    padding: 1.4rem 1rem;
    border-top: 1px solid var(--border-color, #dfe6f1);
}

.system-footer-copyright {
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .04em;
}

.system-footer-initiative {
    width: min(100%, 760px);
    font-size: .72rem;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: .01em;
    text-wrap: balance;
}

@media (max-width: 560px) {
    .system-footer-initiative {
        font-size: .67rem;
        line-height: 1.45;
    }
}

.security-setup-guide {
    align-self: stretch;
}

.security-setup-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: .72rem;
}

.security-setup-steps li {
    display: grid;
    grid-template-columns: 2rem 1fr;
    gap: .7rem;
    align-items: start;
}

.security-setup-steps li > span {
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 87, 214, .12);
    color: #2457d6;
    font-weight: 800;
}

.security-setup-steps strong,
.security-setup-steps small {
    display: block;
}

.security-setup-steps small {
    margin-top: .18rem;
    color: var(--text-muted, #73819a);
    line-height: 1.45;
}

.security-guide-note,
.temporary-password-warning {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    margin-top: 1rem;
    padding: .85rem;
    border-radius: 12px;
    background: rgba(37, 87, 214, .08);
    color: var(--text-primary, #172033);
    line-height: 1.45;
}

.temporary-password-modal {
    max-width: 590px;
}

.temporary-password-warning {
    background: rgba(245, 158, 11, .12);
    color: #7a4a00;
}

.temporary-password-value {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .75rem;
    align-items: center;
    margin: 1rem 0;
}

.temporary-password-value code {
    min-width: 0;
    padding: 1rem;
    border: 1px dashed #7594df;
    border-radius: 12px;
    background: #f4f7ff;
    color: #173b93;
    font-size: clamp(1rem, 2.6vw, 1.35rem);
    font-weight: 800;
    letter-spacing: .06em;
    overflow-wrap: anywhere;
    user-select: all;
}

@media (max-width: 640px) {
    #appMain,
    .auth-container {
        background-size: auto, min(72vw, 390px);
        background-attachment: scroll;
    }
    .temporary-password-value {
        grid-template-columns: 1fr;
    }
}
