/* Estados transversais: erro, acesso negado, HTTP e confirmação pública. */
.system-state {
    position: relative;
    width: min(100%, 46rem);
    margin: clamp(1rem, 6vh, 4.5rem) auto;
    padding: clamp(1.5rem, 5vw, 3.5rem);
    overflow: hidden;
    border: 1px solid #dce8e1;
    border-radius: 1.35rem;
    background: linear-gradient(145deg, #fff 50%, #f3faf6);
    box-shadow: 0 24px 60px rgba(18, 60, 42, .11);
    text-align: center;
}

.system-state::before,
.system-success__card::before {
    position: absolute;
    top: -5rem;
    right: -5rem;
    width: 12rem;
    height: 12rem;
    border: 1.5rem solid rgba(31, 127, 82, .055);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.system-state > * {
    position: relative;
    z-index: 1;
}

.system-state .auth-status-icon {
    display: inline-grid;
    width: 4.75rem;
    height: 4.75rem;
    margin-bottom: 1.35rem;
    place-items: center;
    border: 1px solid transparent;
    border-radius: 1.3rem;
    font-size: 2.15rem;
    transform: rotate(-3deg);
}

.system-state .auth-status-icon > i {
    transform: rotate(3deg);
}

.system-state .auth-status-icon--danger {
    border-color: #f2c0bd;
    background: #fff0ef;
    color: #a91c1c;
}

.system-state .auth-status-icon--warning {
    border-color: #efd7a2;
    background: #fff8e8;
    color: #845600;
}

.system-state .title {
    color: #17362a;
    font-size: clamp(1.55rem, 4vw, 2.15rem);
    font-weight: 800;
    letter-spacing: -.03em;
}

.system-state .subtitle {
    max-width: 36rem;
    margin-inline: auto;
    color: #5a7066;
    font-size: 1rem;
    line-height: 1.65;
}

.system-state__code {
    display: inline-flex;
    padding: .35rem .7rem;
    border-radius: 99rem;
    background: #edf5f0;
    color: #50675c !important;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.system-state code {
    padding: .22rem .45rem;
    border: 1px solid #d8e4dd;
    border-radius: .4rem;
    background: #f5f8f6;
    color: #344c41;
    font-size: .82rem;
    overflow-wrap: anywhere;
}

.system-state > .btn {
    min-width: min(100%, 14rem);
    margin-top: 1.65rem;
    justify-content: center;
    border-radius: .72rem;
}

.system-state__technical {
    padding: .8rem 1rem;
    border: 1px solid #e1e7e3;
    border-radius: .7rem;
    background: #f8faf9;
    color: #465b51;
    font-size: .82rem;
}

.system-state__technical summary {
    cursor: pointer;
    font-weight: 700;
}

.system-state__technical pre {
    max-height: 15rem;
    overflow: auto;
    color: #34483e;
    font-size: .76rem;
}

.system-success {
    padding-top: clamp(.5rem, 3vh, 2rem);
}

.system-success__card {
    position: relative;
    overflow: hidden;
    border: 1px solid #d7e8de;
    border-top: 5px solid #19784c;
    border-radius: 1.4rem;
    background: linear-gradient(155deg, #fff 62%, #f0f9f4);
    box-shadow: 0 25px 65px rgba(17, 68, 44, .13);
}

.system-success__card > * {
    position: relative;
    z-index: 1;
}

.system-success__card > div:first-child > a {
    display: inline-block;
}

.system-success__card > div:first-child img {
    width: min(100%, 15rem);
    height: auto;
}

.system-success__card .csp-success-icon {
    display: grid !important;
    width: 4.75rem;
    height: 4.75rem;
    margin-inline: auto;
    border: .45rem solid #ddf3e7;
    background: #19784c;
    box-shadow: 0 10px 25px rgba(25, 120, 76, .22);
}

.system-success__card .card-title {
    color: #153c2a;
    font-size: clamp(1.55rem, 4vw, 2rem);
    font-weight: 800;
    letter-spacing: -.025em;
}

.system-success__card .card-subtitle {
    color: #5a7066;
    line-height: 1.65;
}

.system-success__card .alert {
    padding: 1rem 1.1rem;
    border-radius: .85rem;
    box-shadow: none;
}

.system-success__card .alert-success {
    border: 1px solid #b9dfca;
    border-left: 5px solid #19784c;
    background: #eef9f3;
    color: #174d34;
}

.system-success__card .alert-warning {
    border: 1px solid #ead29c;
    border-left: 5px solid #a56d08;
    background: #fff9eb;
    color: #674500;
}

.system-success__card .alert strong {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 1.05rem;
    overflow-wrap: anywhere;
}

@media (max-width: 575.98px) {
    .system-state {
        margin-block: .5rem 2rem;
        padding: 1.4rem 1rem;
        border-radius: 1rem;
    }

    .system-state .auth-status-icon,
    .system-success__card .csp-success-icon {
        width: 4.1rem;
        height: 4.1rem;
    }

    .system-success__card {
        border-radius: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .system-state .auth-status-icon,
    .system-state .auth-status-icon > i {
        transform: none;
    }
}
