@media only screen and (max-width: 900px) {
    /* The gradient panel holds the page h1 (the brand lockup), so it is hidden
       with the clip technique rather than display:none — display:none would drop
       the document's only h1 out of the accessibility tree at narrow widths.
       Nothing of it renders: the element collapses to a clipped 1x1 box in the
       top-left corner, and .right-panel takes the full width. */
    .gradient-graphic {
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        background: none;
    }

    .gradient-ellipse {
        display: none;
    }

    .right-panel {
        margin-left: 0;
        width: 100%;
        padding: 24px;
    }

    /* The headline shrinks with clamp() in login.css; this is only the frame around it. */
    .fullbleed-page {
        padding: 24px;
    }
}

@media only screen and (max-width: 480px) {
    .login-card {
        max-width: 100%;
    }

    .right-panel {
        padding: 16px;
    }

    /* At 320px (1280px at 400% zoom) the longest card title fills the band, so the
       one-line design gives way to wrapping rather than clipping. */
    .login-card .card-header h2 {
        white-space: normal;
    }

    .legal-footer {
        flex-wrap: wrap;
    }

    .fullbleed-page {
        padding: 16px;
    }

    /* The watermark reads as noise once it is bigger than the message it sits behind. */
    .fullbleed-watermark {
        width: min(630px, 70vmin);
    }
}
