.optional-2fa-ga-settings {
    max-width: 42rem;
}

.optional-2fa-ga-settings p {
    margin: 0 0 0.75rem;
}

.optional-2fa-ga-settings label {
    display: block;
    margin: 0.75rem 0 0.25rem;
    font-weight: 600;
}

.optional-2fa-ga-settings input[type="text"] {
    max-width: 18em;
}

.optional-2fa-ga-qr {
    margin: 0.75rem 0 1rem;
}

.optional-2fa-ga-qr img {
    border: 1px solid #d8dde6;
    border-radius: 6px;
    display: block;
    height: auto;
    max-width: min(100%, 260px);
    padding: 0.6rem;
}

.optional-2fa-ga-manual {
    margin: 0.75rem 0;
}

.optional-2fa-ga-manual summary {
    cursor: pointer;
    font-weight: 600;
}

.optional-2fa-ga-warning {
    color: #9a3412;
    font-weight: 600;
}

.optional-2fa-ga-check {
    align-items: center;
    display: flex;
    gap: 0.4rem;
}

.optional-2fa-ga-secret {
    margin: 0.5rem 0 0.75rem;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d8dde6;
    border-radius: 6px;
    background: #f8fafc;
    overflow-wrap: anywhere;
}

.optional-2fa-ga-secret code {
    font-size: 1rem;
    letter-spacing: 0;
}

.optional-2fa-ga-enabled {
    color: #147a3c;
    font-weight: 600;
}

.optional-2fa-ga-disabled {
    color: #8a4b00;
    font-weight: 600;
}

.roundcube-2fa-loginform {
    margin: 0;
}

.roundcube-2fa-heading {
    font-size: 1.15rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.3;
    margin: 0 0 0.75rem;
}

.roundcube-2fa-help {
    line-height: 1.4;
    margin: 0 0 1rem;
}

.roundcube-2fa-code-row {
    margin: 0 0 1rem;
}

.roundcube-2fa-code-row label {
    display: block;
    font-weight: 600;
    margin: 0 0 0.35rem;
}

.roundcube-2fa-loginform input[type="text"] {
    box-sizing: border-box;
    width: 100%;
}

.roundcube-2fa-buttons {
    align-items: stretch;
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.roundcube-2fa-buttons .button {
    flex: 1;
    text-align: center;
    white-space: normal;
}

.roundcube-2fa-buttons a.button {
    background: #e5e7eb;
    border: 1px solid #cfd6df;
    color: #1f2933;
    display: inline-block;
    line-height: normal;
    padding-bottom: 0.65rem;
    padding-top: 0.65rem;
    text-decoration: none;
}

@media (max-width: 480px) {
    .roundcube-2fa-buttons {
        flex-direction: column;
    }
}
