/* commit code keypad of the login page (table.openotp_commit), colors from the theme */
table.openotp_commit {
        border-radius: 3px;
}
table.openotp_commit td {
        width: 30px;
        height: 20px;
        color: var(--wa-text-2, #555);
        font-weight: bold;
        text-align: center;
        background-color: var(--wa-surface-2, #eee);
        border-right: 1px solid var(--wa-border-strong, #bbb);
        border-bottom: 1px solid var(--wa-border-strong, #bbb);
}
table.openotp_commit td.topframe {
        border-top: 1px solid var(--wa-border-strong, #bbb);
}
table.openotp_commit td.leftframe {
        border-left: 1px solid var(--wa-border-strong, #bbb);
}
table.openotp_commit td.noframe1 {
        background-color: transparent;
        border-bottom: none;
}
table.openotp_commit td.noframe2 {
        background-color: transparent;
        border-right: none;
        border-bottom: none;
}
table.openotp_commit td:hover {
        background-color: var(--wa-surface, #fff);
        cursor: pointer;
}

/* OpenID logo of the home page */
.openid_logo {
        font-size: 32px;
        color: var(--wa-accent, #F7931E);
}

/* application SSO gallery (appsso.php): template logos (bitmaps drawn for light backgrounds) */
.sso_apps {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        padding: 10px 0;
}
.sso_app {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        width: 120px;
        padding: 10px 6px;
        border-radius: var(--wa-radius-lg, 8px);
        text-align: center;
        text-decoration: none;
}
.sso_app > a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 8px;
        text-decoration: none;
}
a.sso_app:hover, a.sso_app:focus-visible, .sso_app > a:hover, .sso_app > a:focus-visible {
        background: var(--wa-surface-2, #f4f4f4);
        text-decoration: none;
}
.sso_app_logo {
        box-sizing: content-box;
        height: 65px;
        max-width: 100px;
        object-fit: contain;
        padding: 4px;
        border-radius: var(--wa-radius, 4px);
        background: #fff;       /* logos keep a light plate in dark themes */
}
.sso_app_name {
        font-size: 12px;
        font-weight: bold;
        color: var(--wa-text-2, #666);
}
.sso_app.disabled .sso_app_logo {
        opacity: 0.4;
        filter: grayscale(1);
}
.sso_app.disabled .sso_app_name {
        color: var(--wa-muted, #bbb);
}
