/*
 * "Sign in with a passkey" on the login page (views/modules/Login/login.tpl) — a secondary
 * button under the password form, loaded only when the button is shown
 * (CMSConfig.ini [webauthn] signInButton). Independent of the theme: it follows the login box
 * of the themes (#loginfs, light .whiteBox) and keeps the size of the form button.
 * The "passkey" icon is a Material Symbols ligature, as on the DCMS2 sign-in page; the font is
 * imported here because not every asset profile loads it on the login page.
 */
@import url("../common/fonts/google/material-symbols-rounded/css/material-symbols-rounded.css");

#loginfs a.passkeySignIn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-sizing: border-box;
    width: 100%;
    min-height: 44px;
    margin-top: 12px;
    padding: 6px 12px;
    border: 1px solid #c4c4c4;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 2px 7px 0 rgba(0, 0, 0, 0.1);
    color: #222;
    font-family: 'PT Sans', Helvetica, Arial, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    transition: background-color .2s, border-color .2s;
}

#loginfs a.passkeySignIn:hover,
#loginfs a.passkeySignIn:focus {
    border-color: #01597a;
    background: #f2f6f8;
    color: #01597a;
    text-decoration: none;
}

#loginfs a.passkeySignIn:focus-visible {
    outline: 2px solid #01597a;
    outline-offset: 2px;
}

/* Fixed box: until the font is there, the ligature text does not push the label aside. */
#loginfs a.passkeySignIn .msr {
    flex: 0 0 auto;
    width: 20px;
    height: 20px;
    overflow: hidden;
    font-size: 20px;
}
