/*
 * Card for the SSO sign-in redirect and signed-out pages. It matches the account
 * sign-in card (#signinBlock) and works in both the legacy and the twig layouts.
 */

/* The dashboard icon font, under its own name: twig pages map "icomoon" to an
   unrelated npm icon set, where \e910 is not the user icon. */
@font-face {
    font-family: 'ndd-sso-icons';
    src: url('../../fonts/icomoon.woff') format('woff'),
         url('../../fonts/icomoon.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

.ndd-sso-card {
    display: flow-root;
    width: 500px;
    min-height: 120px;
    margin: 100px auto 0;
    padding: 40px;
    background-color: #ababab;
    border-radius: 9px;
    color: #4f4f4f;
    font: 100 12px Arial, Geneva, Verdana, sans-serif;
    text-align: left;
}

.ndd-sso-card__logo {
    display: inline-block;
    width: 100px;
    height: 100px;
}

.ndd-sso-card__body {
    float: right;
    width: 350px;
}

.ndd-sso-card__title {
    display: block;
    margin: 0;
    font-size: 14px;
    font-weight: normal;
    color: #333;
}

.ndd-sso-card__status {
    margin: 12px 0 14px;
    font-size: 13px;
    line-height: 18px;
    color: #333;
}

.ndd-sso-card__note {
    margin: 0 0 14px;
    font-size: 12px;
    line-height: 17px;
    color: #4f4f4f;
}

.ndd-sso-card__spinner {
    display: inline-block;
    width: 11px;
    height: 11px;
    margin-right: 8px;
    vertical-align: -1px;
    border: 2px solid #f3f3f3;
    border-top-color: #6e576b;
    border-radius: 50%;
    animation: ndd-sso-spin 0.9s linear infinite;
}

@keyframes ndd-sso-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .ndd-sso-card__spinner {
        animation: none;
    }
}

.ndd-sso-card__actions {
    margin: 0;
    text-align: right;
}

.ndd-sso-card__actions [role="labeledButton"] {
    color: #333;
    text-decoration: none;
}
.ndd-sso-card__actions [role="labeledButton"]:hover {
    color: #fff;
    background-color: #6e576b;
}
.ndd-sso-card__actions [role="labeledButton"]:focus-visible {
    outline: 2px solid #333;
    outline-offset: 2px;
}
.ndd-sso-card__actions [role="labeledButton"]:before {
    content: '\e910';
    font-family: 'ndd-sso-icons', sans-serif;
}
