* {
    box-sizing: border-box;
}

html {
    font-family:
        Arial,
        Tahoma,
        sans-serif;
    background: #f5f7fb;
    color: #172033;
}

body {
    margin: 0;
    min-height: 100vh;
}

.shell {
    width: min(100% - 28px, 760px);
    margin: 0 auto;
    padding: 42px 0;
}

.brand {
    text-align: center;
    margin-bottom: 26px;
}

.brand h1 {
    margin: 0;
    font-size: 28px;
}

.brand p {
    margin: 8px 0 0;
    color: #687086;
}

.card {
    background: #fff;
    border: 1px solid #e4e8f0;
    border-radius: 18px;
    padding: 24px;
    box-shadow:
        0 12px 32px
        rgba(30, 41, 59, .06);
}

h2 {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 700;
}

input,
select {
    width: 100%;
    min-height: 48px;
    border: 1px solid #cdd5e1;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 16px;
}

button,
.button {
    min-height: 46px;
    border: 0;
    border-radius: 10px;
    padding: 0 18px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.primary {
    background: #172033;
    color: #fff;
}

.secondary {
    background: #eef2f7;
    color: #172033;
}

.success {
    background: #e9f8ef;
    color: #17643a;
}

.warning {
    background: #fff5df;
    color: #835800;
}

.error {
    background: #fdecec;
    color: #912b2b;
}

.info {
    background: #edf4ff;
    color: #244f86;
}

.notice {
    border-radius: 12px;
    padding: 14px 16px;
    margin: 16px 0;
    line-height: 1.7;
}

.actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.field {
    margin-bottom: 18px;
}

.hidden {
    display: none !important;
}

.method-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(180px,1fr)
        );
    gap: 12px;
    margin-top: 18px;
}

.method {
    min-height: 88px;
    border: 1px solid #dce3ec;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
    font-weight: 700;
}

.code {
    direction: ltr;
    text-align: center;
    font-family: monospace;
    letter-spacing: 1px;
    font-size: 18px;
    background: #f3f5f8;
    border-radius: 10px;
    padding: 14px;
    word-break: break-all;
}

.children {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.child {
    border: 1px solid #e1e6ee;
    border-radius: 14px;
    padding: 16px;
}

.child h3 {
    margin: 0 0 8px;
}

.child dl {
    margin: 0;
    display: grid;
    grid-template-columns:
        110px 1fr;
    gap: 7px;
}

.child dt {
    color: #687086;
}

.child dd {
    margin: 0;
    font-weight: 700;
}

.topbar {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: center;
    margin-bottom: 18px;
}

.muted {
    color: #687086;
}

footer {
    text-align: center;
    color: #7b8497;
    font-size: 12px;
    padding: 22px 0 0;
}

@media (max-width: 540px) {
    .shell {
        padding-top: 22px;
    }

    .card {
        padding: 18px;
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }
}


.field-help {
    margin-top: 6px;
    font-size: 0.86rem;
    line-height: 1.6;
    opacity: 0.72;
}

/* BEGIN MOTHER FRIENDLY UX v1 */

.parent-dashboard {
    max-width: 820px;
}

.dashboard-intro {
    margin-bottom: 18px;
}

.dashboard-intro h1,
.section-heading h2 {
    margin-bottom: 6px;
}

.eyebrow {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.children-card {
    margin-bottom: 18px;
}

.section-heading {
    margin-bottom: 16px;
}

.section-heading p {
    margin-bottom: 0;
}

.account-card {
    margin-top: 18px;
}

.account-actions,
.account-email-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

button,
.button,
input,
select {
    min-height: 44px;
}

.account-actions .button,
.account-actions button {
    min-width: 170px;
}

.account-email-page {
    max-width: 680px;
}

.children .child {
    min-width: 0;
}

@media (max-width: 540px) {

    .parent-dashboard,
    .account-email-page {
        width: 100%;
    }

    .dashboard-intro {
        margin-bottom: 14px;
    }

    .children {
        grid-template-columns: 1fr !important;
    }

    .account-actions,
    .account-email-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .account-actions .button,
    .account-actions button,
    .account-email-actions .button,
    .account-email-actions button {
        width: 100%;
        min-width: 0;
    }

    .children-card,
    .account-card {
        margin-left: 0;
        margin-right: 0;
    }
}

/* END MOTHER FRIENDLY UX v1 */


/*
 * Parent Portal footer credit
 */
.footer-credit {
    margin-top: 6px;
    font-size: 0.82rem;
    line-height: 1.4;
    opacity: 0.78;
    text-align: center;
}

.portal-footer {
    text-align: center;
}
