.auth-method-tabs.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 390px;
}

.auth-method-tabs.is-three .auth-method-tab {
    font-size: 12px;
}

.qr-auth-form[hidden] {
    display: none;
}

.qr-auth-content {
    display: flex;
    width: min(100%, 390px);
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
}

.qr-auth-content h2 {
    margin: 0;
}

.qr-auth-code {
    display: grid;
    width: min(260px, 72vw);
    aspect-ratio: 1;
    place-items: center;
    overflow: hidden;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 0 0 1px rgb(35 120 220 / 35%);
}

.qr-auth-code svg {
    display: block;
    width: 100%;
    height: 100%;
}

.qr-auth-spinner {
    width: 34px;
    height: 34px;
    border: 3px solid rgb(35 120 220 / 20%);
    border-top-color: #2378dc;
    border-radius: 50%;
    animation: qr-auth-spin .8s linear infinite;
}

.qr-auth-expired-mark {
    color: #ff7373;
    font-size: 64px;
    font-weight: 300;
    line-height: 1;
}

.qr-auth-match {
    display: flex;
    align-items: baseline;
    gap: 8px;
    color: #9ca7b6;
    font-size: 13px;
}

.qr-auth-match[hidden] {
    display: none;
}

.qr-auth-match strong {
    color: #fff;
    font-size: 17px;
    letter-spacing: .12em;
}

.qr-auth-instruction {
    max-width: 360px;
    margin: 2px 0 0;
    color: #b5bdc8;
    font-size: 13px;
    line-height: 1.5;
}

.qr-auth-status,
.qr-auth-expiry {
    min-height: 18px;
    margin: 0;
    font-size: 13px;
}

.qr-auth-status.is-error {
    color: #ff7373;
}

.qr-auth-status.is-success {
    color: #2ed69a;
}

.qr-auth-expiry {
    color: #7f8b9b;
}

.qr-auth-refresh {
    width: auto;
    min-width: 170px;
}

@keyframes qr-auth-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 440px) {
    .auth-method-tabs.is-three .auth-method-tab {
        padding-inline: 2px;
        font-size: 11px;
    }
}
