/* fortion_2fa — Elastic skin styles */

/* Settings menu icon (Font Awesome shield, bundled by Elastic) */
#settings-menu li.fortion-2fa > a:before,
.listing.iconized li.fortion-2fa > a:before {
    content: "\f3ed";
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome';
    font-weight: 900;
}

/* ------------------------------------------------- settings page */

#fortion-2fa-settings fieldset {
    margin-top: 1.5rem;
}

#fortion-2fa-settings .f2fa-method-status {
    font-weight: bold;
}

.f2fa-enforcement-banner {
    position: fixed;
    z-index: 1050;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    margin: 0 auto;
    max-width: 70rem;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .2);
}

.f2fa-enforcement-banner .f2fa-enforcement-link {
    font-weight: bold;
    text-decoration: underline;
}

#fortion-2fa-settings #f2fa-qr-box {
    margin: 1rem 0;
}

#fortion-2fa-settings #f2fa-qr-box img,
#fortion-2fa-settings #f2fa-qr-box svg {
    width: 200px;
    height: 200px;
    border: 1px solid #e0e0e0;
    border-radius: .3rem;
    background: #fff;
    padding: .5rem;
}

#fortion-2fa-settings .f2fa-secret-line code {
    user-select: all;
    font-size: 1.05em;
    letter-spacing: .05em;
}

#fortion-2fa-settings table.f2fa-passkeys {
    width: 100%;
    margin-bottom: .75rem;
}

#fortion-2fa-settings table.f2fa-passkeys th,
#fortion-2fa-settings table.f2fa-passkeys td {
    padding: .4rem .5rem;
    vertical-align: middle;
}

#fortion-2fa-settings table.f2fa-passkeys th {
    text-align: left;
    font-weight: normal;
    font-size: .9em;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: #888;
    border-bottom: 1px solid rgba(128, 128, 128, .3);
    white-space: nowrap;
}

#fortion-2fa-settings table.f2fa-passkeys th.actions {
    text-align: right;
}

#fortion-2fa-settings table.f2fa-passkeys td.name {
    font-weight: bold;
    word-break: break-word;
}

#fortion-2fa-settings table.f2fa-passkeys td.date {
    color: #666;
    white-space: nowrap;
}

#fortion-2fa-settings table.f2fa-passkeys td.actions {
    text-align: right;
    white-space: nowrap;
}

#fortion-2fa-settings table.f2fa-passkeys td.actions a {
    margin-left: .75rem;
    cursor: pointer;
}

#fortion-2fa-settings .f2fa-add-row {
    max-width: 30rem;
    margin-top: .5rem;
}

#fortion-2fa-settings ul.f2fa-codes {
    list-style: none;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px dashed #999;
    border-radius: .3rem;
    columns: 2;
    font-family: monospace;
    font-size: 1.1em;
    user-select: all;
}

#fortion-2fa-settings ul.f2fa-codes li {
    padding: .15rem 0;
}

html.dark-mode #fortion-2fa-settings #f2fa-qr-box img,
html.dark-mode #fortion-2fa-settings #f2fa-qr-box svg {
    border-color: #4d6069;
}

/* dialog input for the current-code prompt */
.f2fa-code-dialog input.form-control {
    width: 100%;
    margin-top: .5rem;
}

/* ------------------------------------------------- verification page */

.task-fortion_2fa #layout-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto !important;
}

.task-fortion_2fa #logo {
    display: block;
    margin: 1rem auto;
    max-height: 60px;
}

.task-fortion_2fa .f2fa-box {
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
}

.task-fortion_2fa .f2fa-title {
    font-size: 1.3rem;
    text-align: center;
    margin-bottom: .25rem;
}

.task-fortion_2fa .f2fa-intro {
    text-align: center;
    margin-bottom: 1.25rem;
}

.task-fortion_2fa #f2fa-code {
    text-align: center;
    font-size: 1.3rem;
    letter-spacing: .35em;
}

.task-fortion_2fa .f2fa-separator {
    display: flex;
    align-items: center;
    text-align: center;
    color: #999;
    margin: 1rem 0;
}

.task-fortion_2fa .f2fa-separator:before,
.task-fortion_2fa .f2fa-separator:after {
    content: "";
    flex: 1;
    border-bottom: 1px solid #ddd;
}

.task-fortion_2fa .f2fa-separator span {
    padding: 0 .75rem;
    text-transform: lowercase;
}

.task-fortion_2fa .f2fa-links,
.task-fortion_2fa .f2fa-cancel {
    text-align: center;
    margin-top: 1rem;
}

.task-fortion_2fa .f2fa-links a {
    display: block;
    margin: .35rem 0;
}

.task-fortion_2fa .f2fa-remember {
    margin: .75rem 0;
}

.task-fortion_2fa #login-footer {
    margin-top: 2rem;
    text-align: center;
    color: #999;
}
