.oauth-card {
    width: min(900px, 100%);
}

.oauth-section {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px solid #e4e4e7;
}

.oauth-section h2 {
    margin: 0 0 14px;
    font-size: 18px;
}

.oauth-section form {
    min-width: 0;
}

.oauth-section button {
    width: 100%;
    padding: 0 14px;
}

button.danger {
    border-color: #b91c1c;
    background: #b91c1c;
}

.create-link {
    margin-top: 14px;
}

.create-link label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
}

.create-link > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.create-link input {
    min-width: 0;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid #d4d4d8;
    border-radius: 9px;
    background: transparent;
    color: inherit;
    font: inherit;
}

.create-link button {
    width: auto;
}

.validation-error {
    margin: 7px 0 0;
    color: #b91c1c;
    font-size: 13px;
}

.status {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.status.success {
    border-color: #86efac;
    color: #166534;
}

@media (max-width: 620px) {
    .create-link > div {
        grid-template-columns: 1fr;
    }

    .create-link button {
        width: 100%;
    }

    .status {
        display: block;
    }

    .status span {
        display: block;
        margin-top: 4px;
    }
}

@media (prefers-color-scheme: dark) {
    .oauth-section,
    .create-link input {
        border-color: #3f3f46;
    }

    .status.success {
        border-color: #166534;
        color: #86efac;
    }
}
