/* NoxVaris: shared presentation fixes, 0.1.4. No account behaviour changes. */

/* Keep the shared container's gutters on every authentication form. */
.account-section .account-shell-narrow {
    width: min(calc(100% - 40px), 590px);
}

.account-section:not([style]) {
    background:
        linear-gradient(180deg, rgba(5, 8, 16, .84), rgba(5, 8, 16, .98)),
        url('../images/hero-bg.jpg') center / cover no-repeat;
}

.account-heading h1,
.cabinet-welcome h1,
.inner-hero h1,
.article-hero h1,
.server-detail-hero h1,
.legal-hero h1 {
    overflow-wrap: anywhere;
    text-wrap: balance;
}

.account-heading p,
.flash-message,
.legal-block p,
.article-content,
.security-event small {
    overflow-wrap: anywhere;
}

.form-card .form-group > small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.6;
}

.form-check {
    align-items: flex-start;
    line-height: 1.6;
}

.form-check input {
    flex: 0 0 17px;
    margin-top: 2px;
}

.form-check > span {
    min-width: 0;
    overflow-wrap: anywhere;
}

.form-error-block {
    margin-top: 10px;
}

/* Leave the antispam field submitted normally, outside the visible layout. */
.honeypot-field {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

.account-empty-state {
    padding: 32px 34px 28px;
    text-align: center;
}

.account-empty-state strong {
    display: block;
    color: var(--gold-light);
    font-size: 20px;
    line-height: 1.4;
}

.account-empty-state p {
    margin: 12px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.button {
    line-height: 1.4;
    text-align: center;
}

button.button-secondary {
    border: 1px solid rgba(255, 255, 255, .15);
}

button.button-secondary:hover {
    border-color: rgba(255, 255, 255, .28);
}

.site-wrapper a:focus-visible,
.site-wrapper button:focus-visible,
.nv-cookie-button:focus-visible {
    outline: 2px solid var(--gold-light);
    outline-offset: 4px;
}

.form-card-footer {
    flex-wrap: wrap;
    line-height: 1.6;
}

.download-card,
.news-list-card,
.server-functions,
.world-card {
    min-width: 0;
    overflow-wrap: anywhere;
}

.article-content img,
.article-content video,
.article-content iframe {
    max-width: 100%;
}

.article-content pre {
    max-width: 100%;
    overflow-x: auto;
}

@media (max-width: 640px) {
    .account-section .account-shell-narrow {
        width: min(calc(100% - 32px), 590px);
    }

    .legal-hero h1 {
        font-size: clamp(24px, 7.2vw, 32px);
    }

    .account-section .form-group input,
    .profile-grid .form-group input {
        font-size: 16px;
    }

    .account-empty-state {
        padding: 26px 20px 24px;
    }

    .button {
        min-width: 0;
        padding: 12px 18px;
    }

    .server-functions {
        padding: 23px 20px;
    }

    .function-row {
        gap: 12px;
    }

    .function-row > span {
        min-width: 0;
    }

    .function-row > strong {
        flex: 0 0 auto;
    }
}

@media (max-width: 520px) {
    /* Keep a normal game login together; show its badge on the next row. */
    .nv-account-card .nv-account-copy {
        flex-basis: calc(100% - 50px);
    }
}
