/*
 * Account pages (sign-in, register, forgot, reset, e-mail confirm, My Page forms) and the error page. .form-card is
 * the centred 520px card of a form; it builds on .card, the form controls, .btn and .form-note of
 * site.css. No inline styles anywhere: the CSP forbids them.
 */

.form-card {
    max-width: 520px;
    margin: 0 auto;
    padding: 32px 32px 28px;
}

.form-card section,
.mypage-form section {
    margin: 0 0 18px;
}

.form-card label,
.mypage-form label {
    display: block;
    margin: 0 0 6px;
}

.form-card :where(input, select, textarea),
.mypage-form :where(input, select, textarea) {
    width: 100%;
}

.form-card section.error :where(input, select, textarea),
.mypage-form section.error :where(input, select, textarea) {
    border-color: var(--c-error);
}

.form-card .btn-wrap,
.mypage-form .btn-wrap {
    margin: 24px 0 0;
}

.form-card .btn-wrap .btn,
.mypage-form .btn-wrap .btn {
    width: 100%;
}

.form-card .btn-wrap + .form-note,
.form-card form + .form-note {
    margin-top: 20px;
    padding-bottom: 0;
}

.form-links {
    margin: 24px 0 0;
    text-align: center;
}

.form-links:first-child {
    margin-top: 0;
}

.form-links li {
    margin: 6px 0;
}

/* The registration page's expandable list of the e-mail domains that can register (informational only). */
.mail-domains {
    margin: 0 0 18px;
}

.mail-domains__list {
    margin: 8px 0 0;
    columns: 2;
    column-gap: 24px;
    font-size: 13px;
    overflow-wrap: anywhere;
}

.mail-domains__list li {
    margin: 2px 0;
}

/* Read-only facts of the confirmation pages. */
.account-facts {
    margin: 0 0 20px;
}

.account-facts dt {
    margin: 14px 0 2px;
    color: var(--c-muted);
    font-size: 13px;
    font-weight: 700;
}

.account-facts dd {
    margin: 0 0 14px;
    overflow-wrap: anywhere;
}

.account-muted {
    color: var(--c-muted);
}

@media (max-width: 575.98px) {
    .form-card {
        padding: 24px 18px 20px;
    }
}

/* ---- error page --------------------------------------------------------------------------------------------------- */

.error-page {
    padding: 20px 0 0;
    text-align: center;
}

.error-code {
    padding: 0;
    color: var(--c-rule-soft);
    font-size: 72px;
    font-weight: 900;
    line-height: 1.1;
}

.error-page__text {
    padding: 10px 0 0;
}

.error-page__action {
    padding: 24px 0 0;
}
