/* The sign-in page's form: static labels above their boxes (pim-docs ux/forms.md L1), and the neutral Last used badge on
   the way this browser last signed in (A2) — at the end of that way's button, or of the email label's line. The badge
   takes room nothing else needs, so a page with it and one without lay out every control alike. */

.sign-in-field { margin: 20px 0 0; }

.sign-in-label-line {
    align-items: center;
    display: flex;
    gap: 12px;
    height: 24px;
    justify-content: space-between;
    margin-bottom: 4px;
}

.sign-in-label-line label {
    color: #1f1f1f;
    font-size: 14px;
}

.sign-in-input {
    border: 1px solid #747775;
    border-radius: 5px;
    box-sizing: border-box;
    color: #1f1f1f;
    font: inherit;
    font-size: 16px;
    height: 40px;
    padding: 0 12px;
    width: 100%;
}

.sign-in-input:focus {
    border-color: #295cff;
    outline: 1px solid #295cff;
}

#login-form > a { display: inline-block; margin-top: 16px; }

/* The list's own indent keeps the refusal off the box's left border; nothing but this keeps it off the right. */
#login-form .buttons .validation-summary-errors { margin: 16px 0 0; padding-right: 16px; }

.last-used {
    border: 1px solid #747775;
    border-radius: 10px;
    box-sizing: border-box;
    color: #444;
    flex: none;
    font-size: 12px;
    height: 20px;
    line-height: 18px;
    padding: 0 8px;
    white-space: nowrap;
}

/* Each button's name on one line, as the badge needs: a two-line name would run under it, and out of its button. The
   German passkey's fills a phone's button, which therefore keeps 8px a side, not Material's 16px. */
.external-sign-in-button {
    overflow: visible;
    padding: 0 8px;
    white-space: nowrap;
}

/* A name longer than a narrower button still ends at its border, cut short, rather than running past it. */
.external-sign-in-button > span:not(.last-used) {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Out of the button's flow, on its top border at its end: the logo and name stay centred where they are without it, and
   no name runs under it. */

.external-sign-in-button .last-used {
    background: #fff;
    position: absolute;
    right: 12px;
    top: -10px;
}
